|
wpeinit
@echo off
@color 1F
:: sets bg color to blue, and text to white
wpeutil.exe WaitForRemovableStorage
wpeutil.exe UpdateBootInfo
set PEBootRamdiskSourceDrive=
for /f "tokens=1-3 delims== " %%a in ('reg.exe query "HKLM\SYSTEM\CurrentControlSet\Control" /v "PEBootRamdiskSourceDrive" 2^>nul') do (
if %%a.==PEBootRamdiskSourceDrive. @set PEBootRamdiskSourceDrive=%%~dc
)
if Defined PEBootRamdiskSourceDrive (
echo PEBootRamdiskSourceDrive is %PEBootRamdiskSourceDrive%
)
url: http://reboot.pro/topic/16544-cr ... winpe-40-usb-drive/
适用于英文,中文 PE可能需要做些修改。 |
|