JoK
10-09-2001, 05:55 AM
i want to rename a file (path contains dirs with names longer than 8 characters). i used Name oldName$ As newName$.
vb made a copy (!) of the file, and even when i reloaded the explorer window, the old file wasn't gone!
I tried shell("ren " & oldName$ & " " & newName$) which didn't work (i guess vb uses the same dos command internally).
when i tried to copy the file and kill the old one afterwards, the kill command failed (file not found)!
(I tried those things out in test mode (F5 key) and didn't compile my app yet, if this is of any importance)
What should i do?!
vb made a copy (!) of the file, and even when i reloaded the explorer window, the old file wasn't gone!
I tried shell("ren " & oldName$ & " " & newName$) which didn't work (i guess vb uses the same dos command internally).
when i tried to copy the file and kill the old one afterwards, the kill command failed (file not found)!
(I tried those things out in test mode (F5 key) and didn't compile my app yet, if this is of any importance)
What should i do?!