Change the value of errorlevel for testing purposes
Posted: 23 Jul 2019 08:18
Hello,
I need to change a line in some old scripts from this to this
Because of this change I need to test the scripts to make sure it doesn't change the output of the scripts. How can I set the errorlevel ? From my search on internet, it seems I cannot change it.
Thank you for your help.
I need to change a line in some old scripts from this
Code: Select all
If Not ERRORLEVEL 0 (
Code: Select all
IF %errorlevel% NEQ 0
Thank you for your help.