;文件编码：UTF-16 LE，其他编码不被接受。
;指令不支持通配符，比如：* ?
;首字符是“;”的行不会被执行。

;Wimlib指令
;wimlib-imagex.exe update "D:\WIT2020\boot.wim" 1 < "D:\WIT2020\update_commands.txt"
;wimlib-imagex.exe update boot.wim 1 --command="add 'C:\My Dir' '\My Dir'"
;wimlib-imagex.exe update boot.wim 2 --command="delete /usort.exe"

;有效指令示例
;add "D:\WIT2020\DWIM" /Sctipt
;add "D:\WIT2020\WimScript.ini" /Sctipt.ini
;rename /Sctipt/x32.cab /Sctipt/x86.cab
;rename /Sctipt/Sctipt_TEST
;delete /Sctipt/x86.cab
delete /bcdboot.exe


秋刀鱼（无忧ID：Anson4）  
不能删除文件夹，不能挂载，纠结啊。
wimlib-imagex update z:\0.wim < z:\w_rd.txt
复制代码

w_rd.txt内容格式如下，后面会附上文件给懒人下载：
delete --recursive "\$Recycle.Bin"
delete --recursive "\Documents and Settings"
delete --recursive "\PerfLogs"
delete --recursive "\Windows\AppCompat"
复制代码
想要不管文件有没有存在都删一遍需加--force 参数如下所示：
delete --force --recursive "\$Recycle.Bin"
delete --force --recursive "\Documents and Settings"
delete --force --recursive "\PerfLogs"
delete --force --recursive "\Windows\AppPatch"
delete --force --recursive "\Windows\Branding"
delete --force "\autoexec.bat"
delete --force "\Windows\bfsvc.exe"

rstart  
Extract files using a list file:
wimextract install.wim 1 @files.txt  这个是 提取 命令
@rstart 一般类似这样的最好%~dp0\wimlib extract Win10LTSB.wim 1  @files.txt --dest-dir=Z:\ --nullglob
pause



