D
David Graham
Hi all,
I found lots of hits on this subject but no resolution. I have a bat
file that I wrote to XCOPY the contents of a local directory to a
network share. It runs 100% reliable when I launch the bat file from
Explorer, but nearly always fails when scheduled with the task
scheduler. The funny thing is, it's actually worked OK a total of two
times out of about 50 attempts, and I have no idea what was different
about the times it worked vs. the times it didn't. In addition, the
log shows "Result: The task completed with an exit code of (0)." after
each run, but nothing happens.
Here's the bat file contents:
net use G: \\SRV2\accounting [password*] /USER:admin /PERSISTENT:no
xcopy C:\SQLTest G:\Backups\ADP_Server /E /Y /C
net use G: /DELETE
* the real password has been ommitted for obvious reasons
Please help me before I pull all of my hair out!
- Dave
(e-mail address removed)
I found lots of hits on this subject but no resolution. I have a bat
file that I wrote to XCOPY the contents of a local directory to a
network share. It runs 100% reliable when I launch the bat file from
Explorer, but nearly always fails when scheduled with the task
scheduler. The funny thing is, it's actually worked OK a total of two
times out of about 50 attempts, and I have no idea what was different
about the times it worked vs. the times it didn't. In addition, the
log shows "Result: The task completed with an exit code of (0)." after
each run, but nothing happens.
Here's the bat file contents:
net use G: \\SRV2\accounting [password*] /USER:admin /PERSISTENT:no
xcopy C:\SQLTest G:\Backups\ADP_Server /E /Y /C
net use G: /DELETE
* the real password has been ommitted for obvious reasons
Please help me before I pull all of my hair out!
- Dave
(e-mail address removed)