1.添加启动菜单
::从grub4dos-0.4.4.zip中解压grldr,grldr.mbr,grub.exe,menu.lst到C盘根目录
::备份原BCD文件
bcdedit /export "Bcd_Backup" >nul

::生成GUID:{5dae1bc5-2c3e-11e1-a2f4-99e56614ac4b},注意需要记录下来以便下面的指令使用
bcdedit /create /d "GRUB 4 DOS" /application bootsector

bcdedit /set {5dae1bc5-2c3e-11e1-a2f4-99e56614ac4b} device partition=C: >nul
bcdedit /set {5dae1bc5-2c3e-11e1-a2f4-99e56614ac4b} path \grldr.mbr >nul
bcdedit /displayorder {5dae1bc5-2c3e-11e1-a2f4-99e56614ac4b} /addlast >nul
bcdedit /timeout 10 >nul

2.删除此启动菜单
bcdedit /delete {5dae1bc5-2c3e-11e1-a2f4-99e56614ac4b} /cleanup >nul


本文链接地址: 在Windows7中添加GRUB 4 DOS启动菜单
http://qingfengju.com/index.asp?id=282

分类:Win32/C++ 查看次数:5215 发布时间:2012-2-15 9:10:04