Created
May 10, 2022 05:57
-
-
Save MarkZhangTW/97b9ffbf628df2d437d1507da83075b2 to your computer and use it in GitHub Desktop.
Pause if bat is executed by double clicked.
This file contains hidden or 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
for %%x in (%cmdcmdline%) do if /i "%%~x"=="/c" pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/3551888/pausing-a-batch-file-when-double-clicked-but-not-when-run-from-a-console-window