From 6ca79626e56e5c288681d23d6a22b5acd17f4a12 Mon Sep 17 00:00:00 2001 From: dragonflylee Date: Fri, 27 Apr 2018 08:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E8=A1=A8=E4=BD=BF=E7=94=A8TI?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WimExport.cmd | 4 ++-- WimHelper.cmd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WimExport.cmd b/WimExport.cmd index d54ec23..431e308 100644 --- a/WimExport.cmd +++ b/WimExport.cmd @@ -49,7 +49,7 @@ set "WimPath=%~dp0install_RS3_%~3_%date:~0,4%%date:~5,2%%date:~8,2%.wim" call :RemoveFile "%WimPath%" call :RemoveFolder "%~2" rem 导出安装镜像 -for %%i in (consumer china business) do ( +for %%i in (china consumer) do ( for %%j in ("%~1\*.rs3_release_*%%i*_%~3fre_*.esd") do ( if not exist "%~2" call :ExportDVD "%%j", "%~2" call :ExportImage "%%j", "%WimPath%" @@ -65,7 +65,7 @@ set "WimPath=%~dp0install_RS4_%~3_%date:~0,4%%date:~5,2%%date:~8,2%.wim" call :RemoveFile "%WimPath%" call :RemoveFolder "%~2" rem 导出安装镜像 -for %%i in (consumer china business) do ( +for %%i in (china consumer) do ( for %%j in ("%~1\*.rs4_release_*%%i*_%~3fre_*.esd") do ( call :ExportImage "%%j", "%WimPath%" ) diff --git a/WimHelper.cmd b/WimHelper.cmd index 76a8368..028ab85 100644 --- a/WimHelper.cmd +++ b/WimHelper.cmd @@ -334,7 +334,7 @@ for /f "delims=" %%f in ('type "%~1"') do ( set "str=!str:HKEY_LOCAL_MACHINE\SYSTEM=HKEY_LOCAL_MACHINE\TK_SYSTEM!" echo !str!>>"%TMP%\%~nx1" ) -reg import "%TMP%\%~nx1" >nul 2>&1 +%NSudo% reg import "%TMP%\%~nx1" >nul 2>&1 goto :eof rem 加载注册表 [ %~1 : 镜像挂载路径 ]