|
本帖最后由 9zhmke 于 2024-10-5 22:37 编辑
不错不错,看上去再加个备份就够用了。顺手写了个放到我ESD文件堆里的批处理测试没有问题:
- @echo off
- pushd "%~dp0"
- for /f "delims=" %%i in ('dir/b/od "bak*.esd"') do if "%%i" gtr "" set esd="%%i"
- if "%1" gtr "" set esd=%1
- for /f "delims=" %%i in ('dir/ad/b/o-n "wit*"') do if "%%i" gtr "" set exe="%%i\WIT_x64.exe"
- echo 准备用%exe%工具恢复的备份文件是: %esd%
- if not exist %exe% echo 没有找到%exe%. && pause && goto END
- echo start "" %exe% -Source:"%esd%" -wimIndex:0 -InstPart:C: -BootPart:Auto -Shut:2 -UAC -UNA -Silent
- :END
复制代码
|
|