Hi,
Everytime this script runs I always get an access denied error message, this script is:
File1 = "File2.dll"
File2 = "File2.dat"
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile File1, "C:\Destination\File1.dll", OverwriteExisting
objFSO.CopyFile File2, "C:\Destination\File2.dat", OverwriteExisting
set objFSO = Nothing
File2 copies across OK but gets an access denied message on File1, could it be because it is a DLL file?
Everytime this script runs I always get an access denied error message, this script is:
File1 = "File2.dll"
File2 = "File2.dat"
Const OverwriteExisting = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile File1, "C:\Destination\File1.dll", OverwriteExisting
objFSO.CopyFile File2, "C:\Destination\File2.dat", OverwriteExisting
set objFSO = Nothing
File2 copies across OK but gets an access denied message on File1, could it be because it is a DLL file?