Task Scheduler - does not run executable, err: 0xe0434f4d

Discussion in 'Windows Server' started by Karl, Dec 8, 2005.

  1. Karl

    Karl Guest

    I am trying to run an executable file every morning using Windows Server 2003
    Task Scheduler. It runs fine when I am logged in to the system. But it does
    not run correctly when I logoff from the system. The task scheduler status
    shows the following Last Result message: 0xe0434f4d
    Karl, Dec 8, 2005
    1. Advertisements

  2. Place your executable into this batch file to see
    what's going on:

    @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 examine the two log files. They will probably tell
    you the full story.
    Pegasus \(MVP\), Dec 8, 2005
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.