1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00
AzurLaneAutoScript/command/SystemSet.bat

40 lines
862 B
Batchfile
Raw Normal View History

@rem
2020-08-26 09:13:01 +08:00
:: Used for "Alas-Deploy-Tool-V4.bat" in ==Preparation==
:: No %cd% limit.
:: e.g.
:: call command\SystemSet.bat
:: Get system -> %SystemType% %FirstRun% %IsUsingGit%
set "AlasConfig=%root%\config\alas.ini"
set "template=%root%\config\template.ini"
set "gitFolder=%root%\.git"
:SystemSet_SystemType
if /i "%PROCESSOR_IDENTIFIER:~0,3%"=="x86" (
set "SystemType=32"
) else (
set "SystemType=64"
)
:: Another way
:: WMIC OS GET OSArchitecture | find "64" >NUL && set "SystemType=64" || set "SystemType=32"
:SystemSet_FirstRun
if NOT exist "%AlasConfig%" (
set "FirstRun=yes"
) else (
set "FirstRun=no"
)
:SystemSet_IsUsingGit
if exist "%gitFolder%" (
set "IsUsingGit=yes"
) else (
set "IsUsingGit=no"
)
call command\Config.bat IsUsingGit %IsUsingGit%
call command\Config.bat FirstRun %FirstRun%
rem ================= End of File =================