Re: Scheduled tasks won't start



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?
>


.



Relevant Pages

  • Re: Creating a subsubparagraph environment
    ... > Rakesh Vidyadharan wrote: ... >>> Don't attach files. ... > issuing the label command and printing the text. ... Thanks Dan and Peter for the suggestions. ...
    (comp.text.tex)
  • Re: mailing program
    ... > on CLI i use the command "mail" to send and recieve mails. ... > problem is that this mail program doesnt facilitates to attach files ...
    (Fedora)
  • Re: [SLE] alternative to elm
    ... The command "mail" of that version can attach files. ... Check the headers for your unsubscription address ...
    (SuSE)
  • Re: Missing SFC/Scannow File
    ... Copy/paste the above into Start>Run ... Will Denny ... MVP - Windows Shell/User ... I also cannot attach files to my ISP's webmail server or ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Requested: circuit drawing of Marshall Valvestate 80
    ... separate email since I cannot attach files in this usenet message. ... Michiel ... Prev by Date: ...
    (alt.guitar.amps)