in reply to Re: access to ERRORLEVEL on Win32
in thread access to ERRORLEVEL on Win32
The return code from the compiler is evaluated by the caller but will be lost due to the call of perl. So I want to read ERRORLEVEL - the return code of last command *before* my script was started - and return it as exit code by the perl script.cmd "/c c:\CCStudio_v3.1\DosRun.bat > nul && make -f project.mak ../Ou +tput/Debug/obj/%1%.obj 2>&1 | perl vcproj_filter.pl && EXIT errorleve +l"
|
|---|