"PeterKou" <> wrote in message
news:...
>
> Hi,
>
> I use a batch like
> @echo off
> start engine.exe /I1
> exit
>
> and schedule the batch. When executed manually the batch is executed,
> cmd.exe closes down. When the batch is executed by the 2008 scheduler
> the cmd.exe is never closing down.
>
> Any clue?
>
>
> --
> PeterKou
> ------------------------------------------------------------------------
> PeterKou's Profile: http://forums.techarena.in/members/239557.htm
> View this thread:
> http://forums.techarena.in/windows-s...lp/1350442.htm
>
> http://forums.techarena.in
>
Try this variant:
@echo off
echo %date% %time% %UserName% >> c:\PeterKou.txt
start /b engine.exe /I1 1>> c:\PeterKou.txt 2>>&1
echo %date% %time% (End) >> c:\PeterKou.txt
When examining the log file c:\PeterKou.txt then you will probably find that
the task is unable to run engine.exe. When writing batch files it is
imperative to fully qualify all file names with drive and path.