I need to add the following code (or similar code that accomplishes the same thing)
Set "EightParam=%8"
Set "MyStringVariable=MyString"
if "%EightParam%"=="%MyStringVariable%" (
call myBatFile.bat
IF %ERRORLEVEL% NEQ 0 (
exit /b %ERRORLEVEL%
)
myExeFile.exe
IF %ERRORLEVEL% NEQ 0 (
exit /b %ERRORLEVEL%
)
)
REM a lot more code follows below, that I don't dare to change...
in the beginning of an existing big bat-file that I don't dare to fiddle with. Hence, I don't want to add "setlocal enabledelayedexpansion" in order to solve this problem. Does anybody know of a workaround that does not use enabledelayedexpansion?