Copy a file from one folder to another using vbscripting
问题 Can anyone please tell me how to copy a file from one folder to another using vbscripting I had tried this below one from the information provide in the internet. dim filesys set filesys=CreateObject("Scripting.FileSystemObject") If filesys.FileExists("c:\sourcefolder\anyfile.txt") Then filesys.CopyFile "c:\sourcefolder\anyfile.txt", "c:\destfolder\" When I execute this one, I get that the permission is denied. 回答1: Try this. It will check to see if the file already exists in the destination