Dont really ask questions here. Just being lazy today so here it goes.
How can I Rename a file in VB6 using either Name function, API or FSO?
Befor you answer here is my requirements.
I know how to rename a file, but I have a slightly different requirement then just renaming file.
I have a lot of files Capitalised, now i need ot rename them with proper casing. I have developed a batch renamer, but the problem is i Can not rename file if I have not changed the file name. Let me give you an example.
Say my orginal file name is.
C:\MY FILE\HELLO THERE HOW ARE YOU\MY FILE 1.TEXT
NOW I want to rename it to
C:\My File\Hello There How Are You\My File 1.txt
Now as you can see the two file path are same so i cant use VB6's Name function nor the CopyFile of FSO. I can temporarily move it to some where rename and copy it to the original folder but that would not be efficient since i have hundred/thousnds of file to rename.
So is there any alternative? API solution is fine, all i need is the API name or function name.
Thanks.




. Just being lazy today so here it goes.
Reply With Quote