Hi I would appreciate any assistance with the fiollowing...
very basic: take a copy of a file & dump it into another folder & overwrite
previous version. eventually to be done overnight on the Server (running SBS
2003).
but when i run the script:
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "D:\data\test-folder\text.txt" , "D:\Archive\",
OverwriteExisting
the script seems to run but the text.txt file is not copied?
Would appreciate some help
miles - 25 Sep 2007 10:54 GMT
I have managed to get the script to run but i now get error 'Permission
Denied error 800A0046 line 4 char 1'
> Hi I would appreciate any assistance with the fiollowing...
> very basic: take a copy of a file & dump it into another folder & overwrite
[quoted text clipped - 10 lines]
> the script seems to run but the text.txt file is not copied?
> Would appreciate some help
JakeDAHS - 25 Sep 2007 15:31 GMT
> I have managed to get the script to run but i now get error 'Permission
> Denied error 800A0046 line 4 char 1'
[quoted text clipped - 15 lines]
>
> - Show quoted text -
Do you have the proper security permissions to write to that folder?
Perhaps test with a new temp directory as the target.
-J
www.pooradmin.com
miles - 25 Sep 2007 15:52 GMT
> Hi I would appreciate any assistance with the fiollowing...
> very basic: take a copy of a file & dump it into another folder & overwrite
[quoted text clipped - 10 lines]
> the script seems to run but the text.txt file is not copied?
> Would appreciate some help