Re: Scheduled tasks won't start
- From: "Pegasus" <I.can@xxxxxxx>
- Date: Tue, 6 Dec 2005 07:49:53 +1100
You're supposed to replace the line
c:\Tools\YourTask.exe 1>>c:\test.log 2>c:\test.err
with your own command that you're trying to run, e.g. like so:
"c:\program files\my application\run.exe" 1>>c:\test.log 2>>c:\test.err
"Rafi Hecht" <rhecht@xxxxxxxxx> wrote in message
news:1133808852.336417.276310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Since I can't attach files, here's a copy/paste of what happened:
>
> I created an eyes.bat file using your code (you told me to "create
> eyes"):
>
> @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
>
> And I got this from "test.err":
>
> The system cannot find the path specified.
>
> And this from "test.log":
>
> Sun 12/04/2005 12:03:00.06 Start of task
> User=Administrator, Path=
> ErrorLevel of c:\Tools\YourTask.exe=3
> Sun 12/04/2005 12:03:00.10 End of task
>
> That's it plain and simple. What could I possibly have done wrong, and
> what can I do to correct it?
>
.
- Follow-Ups:
- Re: Scheduled tasks won't start
- From: Rafi Hecht
- Re: Scheduled tasks won't start
- From: Rafi Hecht
- Re: Scheduled tasks won't start
- References:
- Scheduled tasks won't start
- From: Rafi Hecht
- Re: Scheduled tasks won't start
- From: Pegasus \(MVP\)
- Re: Scheduled tasks won't start
- From: Rafi Hecht
- Re: Scheduled tasks won't start
- From: Pegasus \(MVP\)
- Re: Scheduled tasks won't start
- From: Rafi Hecht
- Scheduled tasks won't start
- Prev by Date: Re: How to restore files deleted by Windows Media Player
- Next by Date: Re: cd drive
- Previous by thread: Re: Scheduled tasks won't start
- Next by thread: Re: Scheduled tasks won't start
- Index(es):
Relevant Pages
|