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!