|
del /s /f pe_*.txt
find "\" mini\%pelist%>pe_list.txt
type pe_list.txt|findstr /v /m "*">pe_add.txt
type pe_list.txt|findstr /I "*">pe_dir.txt
for /f "delims=" %%i in (pe_dir.txt) do (
dir /s /b "%%i">>pe_tmp.txt
)
for /f "delims=" %%i in (pe_add.txt) do (
if exist "X:%%i" echo X:%%i>>pe_tmp.txt
)
title 第二阶段生成wimlib列表文件...
for /f "tokens=1,2 delims=:" %%a in (pe_tmp.txt) do (
echo add "%%b" "%%b">>pe_excel.txt
)
title 第三阶段把文件添加到wim
%wimlib% update mini.wim<pe_excel.txt搜索
复制
最后多了步骤,但很高效
|
|