21
How can I copy a file from one folder to another using VBScript?
I had tried this below one from the information provide on 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, I get a 'permission denied' error.