|
转:
@echo off
echo.
set/p vhdpath=请输入VHD路径及名称 (例: E:\Win8.vhd)
if not exist %vhdpath% echo.&echo 找不到文件&goto end
for /f "tokens=3" %%i in ('Bcdedit /create /d "Windows 8 VHD" -application osloader') do set win8id=%%i
echo.
Bcdedit /set %win8id% osdevice vhd=[%vhdpath:~0,2%]%vhdpath:~2%
Bcdedit /set %win8id% device vhd=[%vhdpath:~0,2%]%vhdpath:~2%
Bcdedit /set %win8id% path \windows\system32\winload.exe
Bcdedit /set %win8id% systemroot \windows
Bcdedit/displayorder %win8id% -addlast
bcdedit /timeout 5
:end
echo.
pause
[ 本帖最后由 2012列兵 于 2012-11-11 00:02 编辑 ] |
评分
-
查看全部评分
|