|
本帖最后由 2010khmsoft 于 2013-12-11 23:10 编辑
用这个看看:
简易工具
WIM合盘制作.zip
(679.61 KB, 下载次数: 94)
getwim.ini ----文件内容: 简单设置一下变量
- //获取Windows安装文件的WIM镜像路径。
- //
- BROW TWIMPATH,,*%CurDir%\,wim
- EXEC =!CMD.EXE /C ECHO set wimpath="%TWIMPATH%">"%CurDir%\setwimpath.cmd"
- ENVI WIMPATH=
- //
- //获取Windows安装文件的WIM镜像保存路径。
- BROW TWIMPATH1,,&%CurDir%\,wim
- EXEC =!CMD.EXE /C ECHO set wimpath1="%TWIMPATH1%">"%CurDir%\setwimpath1.cmd"
- ENVI WIMPATH1=
- //
复制代码
mount.cmd --------------------- 批处理文本内容:
- @echo off
- Title 系统合盘制作 制作人:KHMSOFT(我本疯狂)
- color 2f
- @echo.
- @echo.
- PUSHD %~dp0&setlocal enabledelayedexpansion
- echo Administrator > %WINDIR%\System32\Administrator.txt
- if not exist %WINDIR%\System32\Administrator.txt goto :exit
- del /s /f /q %WINDIR%\System32\Administrator.txt > nul
- start /wait wincmd load .\getWim.ini
- call setWimpath.cmd
- call setWimpath1.cmd
- @echo.
- @echo.
- md wim
- md mount
- if exist %windir%\syswow64 Set DCPATH="%~dp0x64"
- if not exist %windir%\syswow64 Set DCPATH="%~dp0x86"
- DISM.exe /Get-WIMInfo /WimFile:%Wimpath%
- SET /P letter= 请输入你要选择的挂载INSTALL.WIM镜像卷(1/2/3/4/5...)
- DISM.exe /Get-WIMInfo /WimFile:%Wimpath% /index:%letter%
- DISM.exe /mount-wim /wimfile:.\%Wimpath% /index:%letter% /mountdir:.\mount
- @echo 准备集成组件,按任意键保存卸载镜像...
- pause >nul
- DISM.exe /unmount-wim /commit /mountdir:.\mount
- %DCPATH%\imagex /export %Wimpath% %letter% .\WIM\%Wimpath1% /boot /compress maximum
- %DCPATH%\imagex /info .\wim\%Wimpath1% %letter% "WIN8.1 PE (x64)" " "
- del setWimpath.cmd /q
- del setWimpath1.cmd /q
- rd .\mount /q /s >nul
- timeout 6 >nul&&exit
- :exit
- mode con cols=36 lines=15
- cls
- color fc
- @echo.
- @echo.
- @echo.
- @echo.
- @echo ===================================
- @echo.
- @echo.
- @echo.
- echo 请退出,右键以"管理员身份"运行"我"!
- @echo.
- @echo 即将关闭......&&timeout 6 >nul&&exit
复制代码
|
|