感谢分享! |
学习制作精简版 |
教程收藏 |
感谢分享 |
wimlib删除 |
这个倒是很直接,收藏下 |
rem 正向查找缺失 set Ins_mui=h:\install\Windows\System32\zh-CN set Boot_mui=h:\boot\Windows\System32\zh-CN set tMui=%1\zh-CN if not exist %tMui% md %tMui% for /f %%i in ('dir %1 /a:-d /b') do ( if not exist %tMui%\%%i.mui copy %Ins_mui%\%%i.mui %tMui% if not exist %tMui%\%%i.mui copy %Boot_mui%\%%i.mui %tMui% ) rem 反向查找多余 for /f %%i in ('dir %tMui% /a:-d /b') do if not exist %1\%%~ni del /q %tMui%\%%i @echo off rem 正向查找缺失 set Ins_mun=f:\install\Windows\SystemResources set Boot_mun=f:\boot\Windows\SystemResources set tMun=%1\SystemResources if not exist %tMun% md %tMun% for /f %%i in ('dir %1\System32 /a:-d /b') do ( if not exist %tMun%\%%i.mun copy %Ins_mun%\%%i.mun %tMun% if not exist %tMun%\%%i.mun copy %Boot_mun%\%%i.mun %tMun% ) rem 反向查找多余 for /f %%i in ('dir %tMun% /a:-d /b') do if not exist %1\System32\%%~ni del /q %tMun%\%%i 两个批处理,一个用来检查mui一个用来检查mun,只要把dll弄好了就行了。位置注意改,参数是目标文件夹。 |
sairen139 发表于 2020-10-31 22:32 !导出多映像WIM包里的卷1的所有目录和文件列表.bat的wimlib命令语句如下所示: %~dp0\wimlib dir BOOT.WIM 1 > 1.txt pause |
sairen139 发表于 2020-10-31 17:51 感谢帮助,我试试 |
2013koko 发表于 2020-10-31 17:27 试试类似这个命令:删除多映像里的卷2 wimlib-imagex delete D:\多映像在同一个.wim 2 --check |
删除文件更简单在上文的rd.txt里直接添加要删除的文件的路径就行如下面最后两行所示: delete --recursive "\$Recycle.Bin" delete --recursive "\Documents and Settings" delete --recursive "\PerfLogs" delete --recursive "\Windows\AppPatch" delete --recursive "\Windows\Branding" delete "\autoexec.bat" delete "\Windows\bfsvc.exe" |
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.