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:
21
alas.bat
21
alas.bat
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user