Re: Running XCopy using AT command
From: Todd J Heron (todd_heron_no_spam_at_hotmail.com)
Date: 10/21/04
- Next message: Norman Zhang: "Re: Win98 AD Client Extension"
- Previous message: David Hancock: "RE: XP SP2 gpo"
- In reply to: Ian: "Running XCopy using AT command"
- Next in thread: Ian: "Re: Running XCopy using AT command"
- Reply: Ian: "Re: Running XCopy using AT command"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 21 Oct 2004 12:42:00 -0400
1) With the AT command the system account has local access rights but none
on network.
2) Since jobs run in their own environment, you can't make any assumptions
about environment variables, including path, which is why every file system
object should be fully referenced. Ex: use 'C:\winnt\system32\xcopy.exe'
instead of just 'xcopy'.
3) Pick a time (hh:mm) in the not-too-distant future so you don't have to
wait too long. This command will open a 'DOS' console window running in the
context that all AT jobs run in. In that console window, check the
environment variables by typing 'set'. Are the environment
variables what your batch file is expecting? Especially check the value of
'PATH'. If everything looks OK, type the name of your batch file. Since
the console window can be scrolled backwards for 9999 lines, you should be
able to see all the error messages. Fix the errors and try again.
4) Elevate the context of the batch file to that of an administrator on the
target system by first mapping a drive to the target system at the beginning
of the batch file with the Net Use command along with the /user switch.
-- Todd J Heron, MCSE Windows 2003/2000/NT "Ian" <Ian@discussions.microsoft.com> wrote in message news:732EEC06-8FC9-4D06-81C7-BA1696DF0685@microsoft.com... >I have created a cmd file that copies files from one server to another >using > xcopy. > Running the cmd manually and files get copied over. > Schedule it using AT or WINAT and it does not copy the files over. > No error messages are reported. > I have tried using robocopy but the same thing happens. > The log on robocopy reports the following error: > > "error 5 (0x00000005) getting file system type of destination access is > denied" > > I have checked the permissions of the target directory, even went through > a > mapped drive instead of using \\servername etc. I have even checked the > permissions on cmd.exe and svchost.exe. > The only difference between running the cmd file manualy and through the > schedule is manually it used cmd.exe but the AT command uses svchost.exe. > > Any ideas please. > Cheers >
- Next message: Norman Zhang: "Re: Win98 AD Client Extension"
- Previous message: David Hancock: "RE: XP SP2 gpo"
- In reply to: Ian: "Running XCopy using AT command"
- Next in thread: Ian: "Re: Running XCopy using AT command"
- Reply: Ian: "Re: Running XCopy using AT command"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|