Hi Marc, Marc Hennes wrote: >> then use your command: >> \\OB1NWS801\WPKG\Software\scripts\CheckTask.bat >> >> then type >> echo %ERRORLEVEL% >> >> if ERRORLEVEL is 0 then there is something wrong on your side with the >> script. > > I tried that before I wrote the first mail ;) in a cmd window the scripts exits with 2 as expected. > > Something else I could try? On which version of Windows are you running the software? You might try using "exit" without the /b switch in the .cmd script. br, Rainer |