Can anyone help me with this?
I am trying to do a simple file copy:
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\servername\e$\filepath\filename.ini" , "\\servername\e$\otherfilepath\",OverwriteExisting
A similar script using CopyFolder works fine with the folders in the same locations, but when I run this to copy a single file, I get an access denied message.
Is there a problem with copying to UNC paths?
Thanks
I am trying to do a simple file copy:
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\servername\e$\filepath\filename.ini" , "\\servername\e$\otherfilepath\",OverwriteExisting
A similar script using CopyFolder works fine with the folders in the same locations, but when I run this to copy a single file, I get an access denied message.
Is there a problem with copying to UNC paths?
Thanks