|
发表于 2024-11-9 23:52:34
|
显示全部楼层
这样的话,用PECMD挂载更快,找盘符也更快更精准,也不用diskpart了,启动太慢。
set^ ForceLocal=1
set^ EnviMode=1
set file0=C:\test\test.vhd
moun-vhd %file0%,,,ret
mstr* * disk,err=<1*>ret
ifex $%err%=0,
{
part list part %disk%,part0
sed -ex part0=0,[-\@\=][0-9+]*[ ]*,,part0
forx *v part0,part,
{
part -iv=8 list part %disk%:%part%,drv
find *<>drv,
{
exec =%drv%\test1.exe
exec =%drv%\test2.exe
exec =%drv%\test3.exe
exec =%drv%\test4.exe
exec =%drv%\test5.exe
exec =%drv%\test6.exe
}
}
}
exit
|
评分
-
查看全部评分
|