changing the directory from inside a c program under windows using system command

system() starts a new process. This new process changes its current directory, then ends. The current directory of your program’s process does not change.

You want chdir() (or _chdir()).

Leave a Comment