Hello,
I was just writing a program that will rename a file (under windows) but ran into some problems.
Why can't I do a CD to a directory, it says it dosn't exist, but i'll do the same command under the prompt and it works.Code:system("cd [my directories]"); //dosnt work, windows wont change directory system("rename [directory+file] [directory+renamedfile]"); //dosn't work either. //although, //doing this does work system("G:"); //where all my files are located under