1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-22 03:39:16 +08:00

Added errorlevel check on alas.bat to pause script when return error

This commit is contained in:
whoamikyo
2020-06-22 20:45:21 -03:00
parent bc1816eddb
commit a6dd85380d
2 changed files with 14 additions and 8 deletions

View File

@@ -77,21 +77,26 @@ goto alas
:en
%~dp0python-3.7.6.amd64/python.exe alas_en.pyw
:: timout
PowerShell -Command "Start-Sleep -s 10" > nul 2>&1
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
goto alas
:cn
%~dp0python-3.7.6.amd64/python.exe alas_cn.pyw
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
goto alas
:jp
%~dp0python-3.7.6.amd64/python.exe alas_jp.pyw
PowerShell -Command "Start-Sleep -s 5" > nul 2>&1
if NOT ["%errorlevel%"]==["0"] (
pause
exit /b %errorlevel%
)
goto alas
:EOF
exit