Last active
November 6, 2019 14:02
-
-
Save thany/fc2a411d00c5d63930b8c85930d05c65 to your computer and use it in GitHub Desktop.
A CMD script that suppresses the "Terminate batch job" question upon pressing Ctrl+C, and ends the script immediately instead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if "%~1"=="-FIXED_CTRL_C" ( | |
shift | |
) else ( | |
call <nul %0 -FIXED_CTRL_C %* | |
goto :EOF | |
) | |
rem DO STUFF HERE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment