Any time you use AT, especially if you are accessing network resources, you
have to make sure that the system account you are using for the Scheduler
has the appropriate rights and permissions.
Go to the Services applet in Control panel and select Schedule, click on
Startup (I'm assuming it is already set to automatic). What do you have
listed under the Log on as section? I use my account since I have the
necessary permissions, but you could setup a SchedulerAccount in user
manager and give it the appropriate rights.
You can test this out by creating a quick batch file to print a directory of
the destination share to a file and use the SOON command.
There is one caveat, are you trying to backup shares on NT Workstations or
NT Servers? You need to make sure that whatever account you use for the
Schedule service is recognized on the target systems.
Good luck.
Jeffery Hicks,MCP
Quote:
>Hello,
>I am trying to automate the backup of password protected shared folders on
a
>20 user network to a directory on our file server using Wsh. The command I
>used is as follows:
>CmdString = "CMD /C XCOPY \\" & strUNC & "\" & strSource & " " &
>strDestinationDrive & "\" & strDestinationFolder & " /S /E /I"
>The scripts works well when I manually start it; however, when I schedule
it
>with the WinNT "at" command, the script does not attach to the pasword
>protected share on any of the computer's.
>Is there a better/ easier way to automate a complete copy of a folder and
>it's subfolders?