Scheduled Batch Files

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
 
D

Dave Patrick

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.
 
P

Pegasus \(MVP\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top