Search found 1 match

by sacha99
23 Jul 2019 08:18
Forum: DOS Batch Forum
Topic: Change the value of errorlevel for testing purposes
Replies: 2
Views: 5310

Change the value of errorlevel for testing purposes

Hello, I need to change a line in some old scripts from this If Not ERRORLEVEL 0 ( to this IF %errorlevel% NEQ 0 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 ch...