Bat File runs fine manually, but not as a scheduled task

Home Forums Server Operating Systems Windows Server 2008 / 2008 R2 Bat File runs fine manually, but not as a scheduled task

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    renovatio
    Member
    #162131

    I’m running 2008 server r2. I’m trying to use a simple bat file

    — Start of bat file —

    @ECHO
    OFF
    REM


    REM *** Tiago Nunes 11/05/2010 ***
    REM


    CLS
    Color 1f
    ECHO


    ECHO *** Inicio do processo EDI ***
    ECHO


    ECHO


    ECHO *** Envio e Recepcao de Ficheiros da mailbox ***
    ECHO


    START “” D:InflueNetixoneNetIXOne /cnx
    dir > debug.txt
    ECHO


    ECHO *** Fim do processo EDI ***
    ECHO


    — End of bat file —

    Basically the bat file is composed with “START “” D:InflueNetixoneNetIXOne /cnx” witch does not execute when invoked by the task scheduler. Nonetheless if executed through the command prompt it works perfectly.

    The “dir > debug.txt” line is for debugging and prove that the task scheduler is executing the bat file (the debug.txt is created).

    Any ideas how to overcome this issue?

    Thank You in Advance

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.