M
Mike Beste
*Technet Plus consumer* priority response requested
I am having a problem using the Windows 2000 Task
Scheduler, specifically ...getting a simple bat file to
work. Here is the detail:
The bat file (c:\bat\test.bat) has the following lines in
it:
__________________________
c:
cd\bkf.it-gst75
xcopy /f *.bkf j:
__________________________
It basically copies *.bkf files from a directory
called 'bkf.it-gst75' to a remote storage location that
has been mapped logically to 'j:'.
It works great when you either double click on the file or
run it from a command prompt. I have scheduled a task
using the domain administrator's account (and logged in as
the domain admin). From the GUI it appears that the task
completed successfully but the data never gets copied to
j:\. The log detail suggests the same. I pasted the last
couple lines below:
_________________________________
"test.job" (test.bat)
Started 10/30/2003 8:24:20 PM
"test.job" (test.bat)
Finished 10/30/2003 8:24:20 PM
Result: The task completed with an exit code of
(4).
[ ***** Most recent entry is above this line ***** ]
_________________________________
The task properties the parameters are:
Run: C:\BAT\test.bat
Start in: C:\BAT
Run as: DOMAIN\administrator
I even added 'Domain Admins" to the security tab with full
control.
____________________________________
I have tried to use at.exe as well using the following
syntax for example:
C:\BAT>at.exe 20:44 /every:m,t,w,th,f,s,su c:\bat\test.bat
Added a new job with job ID = 1
____________________________________
log detail for this is pasted below:
"At1.job" (test.bat)
Started 10/30/2003 8:44:00 PM
"At1.job" (test.bat)
Finished 10/30/2003 8:44:00 PM
Result: The task completed with an exit code of
(4).
[ ***** Most recent entry is above this line ***** ]
________________________________
Still the data never makes it to j:\.
What the heck is going on?
Thanks,
Mike
I am having a problem using the Windows 2000 Task
Scheduler, specifically ...getting a simple bat file to
work. Here is the detail:
The bat file (c:\bat\test.bat) has the following lines in
it:
__________________________
c:
cd\bkf.it-gst75
xcopy /f *.bkf j:
__________________________
It basically copies *.bkf files from a directory
called 'bkf.it-gst75' to a remote storage location that
has been mapped logically to 'j:'.
It works great when you either double click on the file or
run it from a command prompt. I have scheduled a task
using the domain administrator's account (and logged in as
the domain admin). From the GUI it appears that the task
completed successfully but the data never gets copied to
j:\. The log detail suggests the same. I pasted the last
couple lines below:
_________________________________
"test.job" (test.bat)
Started 10/30/2003 8:24:20 PM
"test.job" (test.bat)
Finished 10/30/2003 8:24:20 PM
Result: The task completed with an exit code of
(4).
[ ***** Most recent entry is above this line ***** ]
_________________________________
The task properties the parameters are:
Run: C:\BAT\test.bat
Start in: C:\BAT
Run as: DOMAIN\administrator
I even added 'Domain Admins" to the security tab with full
control.
____________________________________
I have tried to use at.exe as well using the following
syntax for example:
C:\BAT>at.exe 20:44 /every:m,t,w,th,f,s,su c:\bat\test.bat
Added a new job with job ID = 1
____________________________________
log detail for this is pasted below:
"At1.job" (test.bat)
Started 10/30/2003 8:44:00 PM
"At1.job" (test.bat)
Finished 10/30/2003 8:44:00 PM
Result: The task completed with an exit code of
(4).
[ ***** Most recent entry is above this line ***** ]
________________________________
Still the data never makes it to j:\.
What the heck is going on?
Thanks,
Mike