|
|
发表于 2010-6-30 17:06:26
|
显示全部楼层
回复 #18 zhhsh 的帖子
我的没问题。
我用的pe是TangoPE.iso(天使)
你把一下内容复制到一个文本文件里,改后缀为cmd文件。注意bcd文件位置还有你的vhd文件位置。记得路径下要有bcdedit.exe文件。
for /f "delims={,} tokens=2" %%a in ('bcdedit /store i:\boot\bcd /create /d "Windows 7 VHD" -application osloader') do set guid=%%a
bcdedit /store i:\boot\bcd /set {%guid%} device vhd="[G:]\WIN7\system.vhd"
bcdedit /store i:\boot\bcd /set {%guid%} path \windows\system32\winload.exe
bcdedit /store i:\boot\bcd /set {%guid%} locale zh-CN
bcdedit /store i:\boot\bcd /set {%guid%} inherit {bootloadersettings}
bcdedit /store i:\boot\bcd /set {%guid%} osdevice vhd="[G:]\WIN7\system.vhd"
bcdedit /store i:\boot\bcd /set {%guid%} systemroot \windows
bcdedit /store i:\boot\bcd /set {%guid%} nx optin
bcdedit /store i:\boot\bcd /set {%guid%} detecthal yes
bcdedit /store i:\boot\bcd /displayorder {%guid%} /addlast
bcdedit /store i:\boot\bcd /timeout 5 |
|