I want to change a directory from within a program ,
i tried the following :
#include <stdio.h>
#include <stdlib.h>
main()
{
system("cd ..");
system("pwd");
return 0;
This will not work (because system uses fork and execxx ?) .Quote:}
I tried to use instead :
system(". cd ..");
which will not work either , to start cd with a leading point seems
to be impossible .
Does anyone know how it can be done ?
Thanks in advance,
Martin