-
Jan 26th, 2005, 10:58 AM
#1
Thread Starter
Addicted Member
fso.movefile
I was trying to rename a file under the same directory,like,
rename "c:\program files\test\file1.txt"
to "c:\program files\test\file_1.txt"
I use fso.movefile("c:\program files\test\file1.txt" ,"c:\program files\test\file_1.txt")
but it only works fine if file_1.txt doesn't exist,
if "file_1.txt" already exists, there is a message box pop up asking " the file already exists, do you want to replace it?" , I clicked o.k and nothing happened, didn't rename at all. how do I write the code to let user choose to really overwrite it or not to overwrite?
thanks for your help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|