Skip to content

Commit

Permalink
Pause script if launched with mouse double-click
Browse files Browse the repository at this point in the history
  • Loading branch information
jesus2099 committed Sep 14, 2023
1 parent 930948a commit 9833ded
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions isrcsubmit.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
setlocal
echo.
for /f "tokens=2 delims=:." %%x in ('chcp') do set cp=%%x
chcp 65001 >NUL
chcp 65001 >nul
python "%~dp0isrcsubmit.py" %*
chcp %cp% >NUL
chcp %cp% >nul
echo %cmdcmdline%|findstr /c:"%~nx0" >nul
if %errorlevel% equ 0 echo.&pause

0 comments on commit 9833ded

Please sign in to comment.