Is there any way to change directory using C language?

后端 未结 6 1853
无人及你
无人及你 2020-11-27 08:24

Is there any way by which I can change to any directory by executing a C program?

6条回答
  •  旧时难觅i
    2020-11-27 09:05

    Depending on your OS there are different calls for changing the current directory. These will normally only change the current dir of the process running the executable. After the process exits you will be in the directory you started in.

提交回复
热议问题