Re: Scheduled tasks won't start
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Thu, 1 Dec 2005 10:28:56 +1100
"Rafi Hecht" <rhecht@xxxxxxxxx> wrote in message
news:1133387316.764098.316000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I currently operate a machine with Windows 2000 server on it, and am
> trying to schedule a task that will execute a .cmd file every night at
> a certain time. I tried to run it but it wouldn't go. I entered the
> administrator password and the "task" ran. However, the process that
> the file was supposed to do didn't. I was able to manually run the
> script in the past simply by double-clicking it, but now I'm looking
> for a shortcut. Any advice on this would be greatly appreciated.
>
You need to give yourself some "eyes" so that you can see what's
going on. Use the Task Scheduler to run this batch file:
@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 ErrorLevel of c:\Tools\YourTask.exe=%ErrorLevel% >> c:\test.log
echo %date% %time% End of task >> c:\test.log
Now have a look at the two log files and all will become clear.
.
- Follow-Ups:
- Re: Scheduled tasks won't start
- From: Rafi Hecht
- Re: Scheduled tasks won't start
- References:
- Scheduled tasks won't start
- From: Rafi Hecht
- Scheduled tasks won't start
- Prev by Date: Re: Windows explorer column width
- Next by Date: Re: Moving 2000 to new computer
- Previous by thread: Scheduled tasks won't start
- Next by thread: Re: Scheduled tasks won't start
- Index(es):
Relevant Pages
|