|
本帖最后由 2010techon 于 2022-2-17 15:00 编辑
-----发完才看到已解决,删了吧
:MainMenu 主界面:
- :MainMenu
- cls
- color 07
- title Microsoft Activation Scripts AIO 1.5
- mode 76, 30
- if exist "%mastemp%\.*" rmdir /s /q "%mastemp%" %nul%
- echo:
- echo:
- echo:
- echo:
- echo: ______________________________________________________________
- echo:
- echo: Activation Methods:
- echo:
- echo: [1] HWID ^| Permanent ^| Win 10-11
- echo: [2] KMS38 ^| Till 2038 ^| Win 10-11-Server
- echo: [3] Online KMS ^| 180 Days ^| Win / Office
- echo: __________________________________________________
- echo:
- echo: [4] Check Activation Status [vbs]
- echo: [5] Check Activation Status [wmi]
- echo: [6] Extras
- echo: __________________________________________________
- echo:
- echo: [7] Read Me
- echo: [8] Exit
- echo: ______________________________________________________________
- echo:
- call :_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,3,4,5,6,7,8] :"
- choice /C:12345678 /N
- set _erl=%errorlevel%
- if %_erl%==8 exit /b
- if %_erl%==7 start https://windowsaddict.ml & goto :MainMenu
- if %_erl%==6 goto:Extras
- if %_erl%==5 setlocal & call :_Check_Status_wmi_ext & cls & endlocal & goto :MainMenu
- if %_erl%==4 setlocal & call :_Check_Status_vbs & cls & endlocal & goto :MainMenu
- if %_erl%==3 setlocal & call :KMSActivation & cls & endlocal & goto :MainMenu
复制代码 是[3]号选项吧? 执行 call :KMSActivation
在 :KMSActivation 内有:
- call :_export kacttxt "%mastemp%\Activate.cmd" ASCII
- call "%mastemp%\Activate.cmd"
复制代码
:_export部分:
- :: Extract the text from batch script without character issue
- :_Export
- %nul% %_psc% "$f=[io.file]::ReadAllText('!_batp!') -split ":%~1\:.*`r`n"; [io.file]::WriteAllText('%~2',$f[1].Trim(),[System.Text.Encoding]::%~3);"
- exit /b
复制代码
很可能是这里调用powershell 将编码转为ASCII的原因。。。
|
|