Re: Xcopy not working in startup script
- From: Chris M <nobody@xxxxxxxxxxxxxxx>
- Date: Thu, 04 Oct 2007 01:11:28 +0100
Slingshotz wrote:
This is driving me nuts and I have not been able to find any answers
on any user group. This is a basic batch file script that I am
deploying through group policy in the startup script to copy
templates
from the server to the local machine. I'm deploying it during the
startup so that every computer gets it, regardless of who logs in.
=========================
if NOT exist "C:\Templates" md "C:\Templates"
pushd "\\servername\Templates\"
xcopy *.dot C:\Templates /Y /D
popd
=========================
It is almost certainly something to do with the running context of the script... startup scripts run as the local SYSTEM account which can make things tricky when network access is concerned.
When you tested the script successfully using a plain copy command, did you also use the PUSHD command before it or did you just use the UNC path in the command?
Cheers,
--
Chris.
.
- Follow-Ups:
- Re: Xcopy not working in startup script
- From: Slingshotz
- Re: Xcopy not working in startup script
- References:
- Xcopy not working in startup script
- From: Slingshotz
- Xcopy not working in startup script
- Prev by Date: Re: Xcopy not working in startup script
- Next by Date: Re: NT broadcast command from older software
- Previous by thread: Re: Xcopy not working in startup script
- Next by thread: Re: Xcopy not working in startup script
- Index(es):
Relevant Pages
|
Loading