From 9c7c876e52bcc2c54cec5428aa2322423df2b435 Mon Sep 17 00:00:00 2001 From: abbodi1406 <33669284+abbodi1406@users.noreply.github.com> Date: Wed, 20 Nov 2019 03:18:23 +0300 Subject: [PATCH] v0.0.12-alpha Add: Create $ Folder option --- KMS_VL_ALL_AIO.cmd | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/KMS_VL_ALL_AIO.cmd b/KMS_VL_ALL_AIO.cmd index c0c21d3..acd7e38 100644 --- a/KMS_VL_ALL_AIO.cmd +++ b/KMS_VL_ALL_AIO.cmd @@ -282,9 +282,10 @@ echo. echo [9] Activate: [External] Mode echo %line3% echo. -choice /c 1234567890RW /n /m "> Choose a menu option, or press 0 to Exit: " +choice /c 1234567890RSW /n /m "> Choose a menu option, or press 0 to Exit: " set _el=%errorlevel% -if %_el%==12 if %winbuild% GEQ 10240 (if %SkipKMS38% EQU 0 (set SkipKMS38=1) else (set SkipKMS38=0))&goto :MainMenu +if %_el%==13 if %winbuild% GEQ 10240 (if %SkipKMS38% EQU 0 (set SkipKMS38=1) else (set SkipKMS38=0))&goto :MainMenu +if %_el%==12 (call :CreateOEM)&goto :MainMenu if %_el%==11 (call :CreateReadMe)&goto :MainMenu if %_el%==10 goto :eof if %_el%==9 goto :E_IP @@ -1054,6 +1055,27 @@ popd if exist "%temp%\ReadMe.html" start "" "%temp%\ReadMe.html" goto :eof +:CreateOEM +cls +echo. +echo Creating $OEM$ Folder... +echo. +set "_oem=!_work!" +copy /y nul "!_work!\#.rw" 1>nul 2>nul && (if exist "!_work!\#.rw" del /f /q "!_work!\#.rw") || (set "_oem=%SystemDrive%\Users\Public\Desktop") +echo "!_oem!\$OEM$" +if not exist "!_oem!\$OEM$\$$\Setup\Scripts\KMS_VL_ALL_AIO.cmd" mkdir ""!_oem!\$OEM$\$$\Setup\Scripts" +copy /y "%~f0" "!_oem!\$OEM$\$$\Setup\Scripts\KMS_VL_ALL_AIO.cmd" %_Nul3% +( +echo @echo off +echo call %%~dp0KMS_VL_ALL_AIO.cmd /s /a +echo cd \ +echo ^(goto^) 2^>nul^&rd /s /q "%%~dp0" +)>"!_oem!\$OEM$\$$\Setup\Scripts\setupcomplete.cmd" +echo. +echo Press any key to continue... +pause >nul +goto :eof + :casVm cls %_Nul3% powershell -noprofile -exec bypass -c "&{$H=get-host;$W=$H.ui.rawui;$B=$W.buffersize;$B.height=300;$W.buffersize=$B;}"