mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 07:55:36 +08:00
Added errorlevel check on alas.bat to pause script when return error
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -14,6 +14,7 @@ dev_tools/debug_tools
|
|||||||
/python
|
/python
|
||||||
/python-3.7.6.amd64
|
/python-3.7.6.amd64
|
||||||
/scripts
|
/scripts
|
||||||
|
/campaign/test/
|
||||||
|
|
||||||
# Created by .ignore support plugin (hsz.mobi)
|
# Created by .ignore support plugin (hsz.mobi)
|
||||||
|
|
||||||
|
|||||||
21
alas.bat
21
alas.bat
@@ -77,21 +77,26 @@ goto alas
|
|||||||
|
|
||||||
:en
|
:en
|
||||||
%~dp0python-3.7.6.amd64/python.exe alas_en.pyw
|
%~dp0python-3.7.6.amd64/python.exe alas_en.pyw
|
||||||
:: timout
|
if NOT ["%errorlevel%"]==["0"] (
|
||||||
PowerShell -Command "Start-Sleep -s 10" > nul 2>&1
|
pause
|
||||||
|
exit /b %errorlevel%
|
||||||
|
)
|
||||||
goto alas
|
goto alas
|
||||||
|
|
||||||
:cn
|
:cn
|
||||||
%~dp0python-3.7.6.amd64/python.exe alas_cn.pyw
|
%~dp0python-3.7.6.amd64/python.exe alas_cn.pyw
|
||||||
|
if NOT ["%errorlevel%"]==["0"] (
|
||||||
|
pause
|
||||||
|
exit /b %errorlevel%
|
||||||
|
)
|
||||||
goto alas
|
goto alas
|
||||||
|
|
||||||
:jp
|
:jp
|
||||||
%~dp0python-3.7.6.amd64/python.exe alas_jp.pyw
|
%~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
|
goto alas
|
||||||
|
|
||||||
:EOF
|
:EOF
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user