Re: change all files names to lower case.
- Posted by PeteE Aug 29, 2014
- 1406 views
I'm not at a windows box at the moment, so this is just a guess:
MoveFile fails if the destination file already exists, which might be the what's happening since you're only changing the case of the filename and Windows is filename case-insensitive. Try using MoveFileEx with the flag MOVEFILE_REPLACE_EXISTING?
And if that doesn't work, try renaming it to temporary different name, then rename again to the lowercased name.