Originally Posted by
nindoja
@exarath: I did that... I placed one at every line, and it won't show up.
You placed one what?? printf()??
Do the breakpoints thing. Where does the renameFiles() function return?? Is the full path dir name valid?? does the directory exists in your PC??
Change this
Code:
if(hTheFiles==INVALID_HANDLE_VALUE) return;
with this
Code:
if(hTheFiles==INVALID_HANDLE_VALUE){
fprintf(stderr, "ERROR: no files at dir %s", startingDir);
return;
}
With your last posted source I got this, with a dir created just for testing:
c:\test\
FILE: c:\test\New Flash Document.fla renamed
c:\test\New Folder\
hahahahahahahahahahahahahac:\test\New Folder (2)\
hahahahahahahahahahahahahaFILE: c:\test\New Text Document.txt renamed
FILE: c:\test\New WinZip File.zip renamed
Press any key to continue