[wpkg-users] Questions about offline mode and executing the wpkg service

Tomasz Chmielewski mangoo at wpkg.org
Thu Apr 3 22:32:10 CEST 2008


Rainer Meier schrieb:

(...)

> So scripts should never exit using 'exit <code>' from my point of view. 
> Using 'exit /b <code>' perfectly serves the purpose and works in every 
> case (no matter if your script is the topmost or one of the called ones.

We're talking about two different things and it makes a difference if /b 
is used or not:

prompt> echo exit /b 1 > 1.bat
prompt> cmd /c 1.bat
prompt> echo %errorlevel%
0

prompt> echo exit 2 > 2.bat
prompt> cmd /c 2.bat
prompt> echo %errorlevel%
2



-- 
Tomasz Chmielewski
http://wpkg.org



More information about the wpkg-users mailing list