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 fb605b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions isrcsubmit.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
@echo off
setlocal
echo.

for /f "tokens=2 delims=:." %%x in ('chcp') do set cp=%%x
chcp 65001 >NUL

python "%~dp0isrcsubmit.py" %*

chcp %cp% >NUL

echo %cmdcmdline%|findstr /c:"%~nx0" >nul
if %errorlevel% equ 0 echo.&pause

0 comments on commit fb605b6

Please sign in to comment.