|
bcdedit脚本添加NTLDR和GRLDR引导不知道行不行,没有W7环境测试。
- @echo off
- set TP=%~DP0
- bcdedit /createstore %TP%bcd
- bcdedit /store %TP%bcd /create {ntldr} /d "Windows XP sp2"
- bcdedit /store %TP%bcd /set {ntldr} device partition=c:
- bcdedit /store %TP%bcd /set {ntldr} path \ntldr
- rem bcdedit /store %TP%bcd /displayorder {ntldr} /addlast
- bcdedit /store %TP%bcd /create /d "GRUB for DOS" /application bootsector >log.txt
- for /f "tokens=1,2,3,4* delims= " %%i in (log.txt) do set id=%%k
- bcdedit /store %TP%bcd /set %id% device partition=C:
- bcdedit /store %TP%bcd /set %id% path \grldr.mbr
- bcdedit /store %TP%bcd
复制代码
[ 本帖最后由 haiou327 于 2010-3-8 16:44 编辑 ] |
|