Computer Hope
Microsoft => Microsoft DOS => Topic started by: jantzman60 on October 09, 2009, 12:47:51 PM
-
Hi,
I have been testing the copying of files from a test directory on one server (Windows 2008) to another server (Windows 2003).
I can successfully execute the XCOPY command in a 'bat' file, but when I schedule the ‘bat’ file as a scheduled
task, the command doesn't work.
XCOPY "E:\backup test\test folder" "\\poweredge\Backups" /C /E /H /I /Y
What am I missing? Something related to permissions?
Thanks!
-
Did you schedule the script from the Scheduled Task Wizard or did you use the AT command?
-
macdad,
Thanks for the response. I scheduled the script from the Scheduled Task Wizard.
I found the solution. A friend commented that dos xcopy won't let you use a URL
and that I would need to map a drive. Mapping the drive allowed the xcopy to work!
-
:)