ENVI^ ForceLocal=1
TEAM SET &ULIST=| SET &DISKX=| SET &PART_INFO=| SET &LETTER=| SET &PR=| SET &V=| SET &BUSNAME=| SET &I=| SET &J=| SET &HD=| SET &U=
ENVI ULIST=
PART LIST DISK,DISKX
FORX * %DISKX%,HD,TEAM FORM V,BUSNAME=\\.\PHYSICALDRIVE%HD%|FIND $%BUSNAME%=7,CALL FREEUSB
REGI HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\!
ENVI I=1
STRL J=UVZABTSRQPONMLKJIHGFEDC
FORX * %ULIST%,U,
{
LOOP #%I%<=%J%,TEAM MSTR LETTER=%I%,1,UVZABTSRQPONMLKJIHGFEDC|CALC #I=%I%+1|IFEX %LETTER%:,! EXIT LOOP
IFEX %LETTER%:,! SHOW * %U%,%LETTER%
}
IFEX $%&PECDMVER%>=201201880562, DISK ,,,1,,2! DISK ,,,1,,2
_SUB FREEUSB
PART -ADMIN LIST PART %HD%,PART_INFO
FORX * %PART_INFO%,PR,
{
PART -ADMIN LIST PART %HD%#%PR%,PARTI
MSTR LETTER=<8>%PARTI%
FIND $%LETTER%=,! TEAM SUBJ *%LETTER%|ENVI ULIST=%ULIST% %HD%:%PR%
}
_END作者: langyun 时间: 2020-9-24 20:01
有的PE有自带工具可以作者: FoxHu 时间: 2020-9-25 21:34
微PE的WIM文件解压后,里面有一个orderdrv.cmd,可以在PE启动过程中调整盘符顺序