Scheduled Batch Files

  • Thread starter Thread starter Don Sutter
  • Start date Start date
D

Don Sutter

Hi All,

I've written MS-DOS batch files for years but can't seem to get them to run
under the Windows Task Scheduler. I'm wondering what sort of site,
literature or Microsoft resource I could look up to find out what I'm doing
wrong?

Thanks in advance

Don
 
Scheduled Tasks|Advanced|View Log may provide more details. If it involves
network resources, make sure the user account has permissions to the
resources and also use UNC paths as mapped drives won't exist when no one is
logged on.
 
Don Sutter said:
Hi All,

I've written MS-DOS batch files for years but can't seem to get them to run
under the Windows Task Scheduler. I'm wondering what sort of site,
literature or Microsoft resource I could look up to find out what I'm doing
wrong?

Thanks in advance

Don

Add some basic diagnostics, then examine the two log files:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
c:\Tools\YourTask.exe 1>>c:\test.log 2>>c:\test.err
echo %date% %time% End of task >> c:\test.log
 
Back
Top