L
livetohike
Hi,
I can't get the simple batch below to run from the scheduler via right-
click/Run. (Nor does it work if I schedule it to run).
When I run it from Explorer or cmd window it works fine.
I am running it w/ an administrator account and password (but have
tried other accounts)
Batch file contains the following single line:
echo %date% %time% >> Test.txt
I can see the black cmd window 'flash' so it appears to run, but does
not write to the file.
The batch and output file (Test.txt) live within the MyDocument folder
of the user running the batch.
Test.txt should contain (and does when run manually):
Thu 05/22/2008 17:58:08.98 moormansd
Thu 05/22/2008 17:59:01.28 moormansd
etc.
Scheduler shows exit status of 1 and a correct "Last Run Time"
The Advanced/View Log shows:
"Schedule Test.job" (ScheduleTest.bat)
Started 5/22/2008 5:54:36 PM
"Schedule Test.job" (ScheduleTest.bat)
Finished 5/22/2008 5:54:36 PM
Result: The task completed with an exit code of (1).
What am I doing wrong!
Thanks
I can't get the simple batch below to run from the scheduler via right-
click/Run. (Nor does it work if I schedule it to run).
When I run it from Explorer or cmd window it works fine.
I am running it w/ an administrator account and password (but have
tried other accounts)
Batch file contains the following single line:
echo %date% %time% >> Test.txt
I can see the black cmd window 'flash' so it appears to run, but does
not write to the file.
The batch and output file (Test.txt) live within the MyDocument folder
of the user running the batch.
Test.txt should contain (and does when run manually):
Thu 05/22/2008 17:58:08.98 moormansd
Thu 05/22/2008 17:59:01.28 moormansd
etc.
Scheduler shows exit status of 1 and a correct "Last Run Time"
The Advanced/View Log shows:
"Schedule Test.job" (ScheduleTest.bat)
Started 5/22/2008 5:54:36 PM
"Schedule Test.job" (ScheduleTest.bat)
Finished 5/22/2008 5:54:36 PM
Result: The task completed with an exit code of (1).
What am I doing wrong!
Thanks