Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Server 2003 / Scripting / September 2007

Tip: Looking for answers? Try searching our database.

Copy a file from one folder to another on the server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
miles - 25 Sep 2007 09:40 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.