Possible Duplicate:
How do I set the working directory of the parent process?
程序退出后,是否可以使目录的更改保持不变?当程序退出时,它会重置为原来的目录。

最佳答案

子进程不能影响其父进程的当前目录,也不能影响其父进程的environment如果子目录删除父目录的当前目录,则使父目录没有命名的当前目录,但仅此而已。

关于c - 退出后更改父进程的目录,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11806810/

10-09 07:13
查看更多