Change directory of parent process after exit

1.1k Views Asked by At

Possible Duplicate:
How do I set the working directory of the parent process?

Is possible to make the change of directory persist after program exit? Since it resets to original directory when program exits.

2

There are 2 best solutions below

0
On BEST ANSWER

A child process cannot affect its parent's current directory, any more than it can really affect its parent's environment. If the child removes the parent's current directory, it makes it so that the parent doesn't have a named current directory, but that's about all.

0
On

No. Why do you wish that the directory changes?