dashulongtan 发表于 2021-4-14 22:13:18

win1021h1

本帖最后由 dashulongtan 于 2021-4-14 22:16 编辑

creatingISO_19043.906_zh-cn_amd64_all.cmd
上面这个做成批处理,即以bat结尾。
把下面的命令复制到这个写字板里。
@echo off

rem script:         @rgadguard and abbodi406

setlocal EnableExtensions
setlocal EnableDelayedExpansion
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )

if not exist "%cd%\bin\wimlib-imagex.exe" goto :Convert_lite
:GO_DOWN

for /f "tokens=3 delims=: " %%b in ('dism /english /online /Get-Intl ^| find /i "System locale"') do (
      call bin\lang-uup.cmd -en
      if /i %%b==ru-RU call bin\lang-uup.cmd -ru
)
set "file_main=%~n0"
set "aria2=bin\aria2c.exe"
set "rand=%random%"
set "down_temp=%rand%\down"
set "aria2Script=%rand%\aria2_script.txt"
set "BuildInfo=19043.906"
set "lang_def=zh-cn"
set "destDir=uup/!BuildInfo!/!lang_def!/amd64"
set "updateId=3c61c03d-acda-4c24-94af-bd54ae988de5"
mkdir %rand%

%aria2% -x16 -s16 -d"%rand%" -o"aria2_script.txt" "https://uup.rg-adguard.net/api/GetFiles?id=!updateId!&lang=!lang_def!&edition=all&txt=yes"
if %ERRORLEVEL% GTR 0 goto DOWNLOAD_ERROR
for %%i in ("%aria2Script%") do (if /i %%~zi LEQ 10 goto ERROR_API)

:Tools
set update_en=OFF
set update_num=0
for /f "tokens=1 skip=2" %%a in ('find /N "Windows10.0-KB" "%aria2Script%"') do (
      set /a update_num+=1
)
for /f "tokens=6 delims=[]. " %%G in ('ver') do (
      if %%G LEQ 9599 set update_num=0
)
if /i %update_num% neq 0 (set update_en=ON)

:Go_down
title %lang_titke_download%...
if not exist "%destDir%\good" (
      %aria2% -x16 -s16 -j5 -c -R -d"%destDir%" -i"%aria2Script%"
      if %ERRORLEVEL% GTR 0 goto DOWNLOAD_ERROR
      echo.>%destDir%\good
)
erase /q /s "%aria2Script%" >NUL 2>&1

color 0a
call bin\convert-UUP.cmd %cd%\uup\!BuildInfo!\!lang_def!\amd64 %update_en%
goto EOF

:Convert_lite
for /f "tokens=3 delims=:. " %%f in ('bitsadmin.exe /CREATE /DOWNLOAD "Download convert_lite" ^| findstr "Created job"') do set GUID=%%f
title Download convert_lite...
bitsadmin /transfer %GUID% /download /priority foreground https://uup.rg-adguard.net/dl/convert_lite.cab "%cd%\convert_lite.cab"
if NOT EXIST convert_lite.cab goto ERROR_API
expand convert_lite.cab -f:* %cd% >nul
del /f /q convert_lite.cab >nul 2>&1
goto :GO_DOWN

:DOWNLOAD_ERROR
color 0c
echo We have encountered an error while downloading files.
erase /q /s "%aria2Script%" >NUL 2>&1
pause
goto EOF

:ERROR_API
color 0c
echo Error getting links to download UUP files.
echo Try again a few minutes later.
erase /q /s "%aria2Script%" >NUL 2>&1
pause
goto EOF

:EOF
exit


dashulongtan 发表于 2021-4-14 22:17:04

右键选管理员命令运行。

dashulongtan 发表于 2021-4-15 08:48:37

看我另,直接运行

toiday 发表于 2021-4-15 14:09:10

longtv 发表于 2021-4-15 14:12:04

hnl85 发表于 2021-4-15 19:58:14

dashulongtan 发表于 2021-4-15 21:07:07

各位朋友,有用了,请点个赞,我的热心值负了

lxjc 发表于 2021-4-15 22:50:18


thanks for sharing

陈阳 发表于 2021-4-16 10:02:07

请问可以做最新的19043.928版本不?

hungtink2 发表于 2021-4-16 11:47:37

页: [1] 2
查看完整版本: win1021h1