1、 新建一个WIM启动项 [已验证]
============================脚本开始============================
@echo off
color 1f
bcdedit.exe /timeout 7
for /f "delims={,} tokens=2" %%a in ('bcdedit /create /d "WIM" -application osloader ') do set Guid={%%a}
bcdedit /set %Guid% device ramdisk="[%systemdrive%]\Aero7PE\WIN7PE.wim,{ramdiskoptions}"
bcdedit /set %Guid% osdevice ramdisk="[%systemdrive%]\Aero7PE\WIN7PE.1wim,{ramdiskoptions}"
bcdedit /set %Guid% path \windows\system32\boot\winload.exe
bcdedit /set %Guid% locale zh-CN
bcdedit /set %Guid% systemroot \windows
bcdedit /displayorder %Guid% -addlast
============================脚本结束============================
2、 新建一个实模式启动项 [已验证]
============================脚本开始============================
@echo off
color 1f
bcdedit.exe /timeout 7
for /f "delims={,} tokens=2" %%a in ('bcdedit /create /d "Grub" /application bootsector') do set Guid={%%a}
bcdedit /set %Guid% device boot
bcdedit /set %Guid% path \grldr.mbr
bcdedit /set %Guid% locale zh-CN
bcdedit /displayorder %Guid% /addlast
============================脚本结束============================
3、 新建一个普通系统启动项 [已验证]
============================脚本开始============================
@echo off
color 1f
bcdedit.exe /timeout 7
for /f "delims={,} tokens=2" %%a in ('bcdedit /create /d "Windows 7" /application osloader ') do set Guid={%%a}
bcdedit /set %Guid% inherit {bootloadersettings}
bcdedit /set %Guid% device partition=C:
bcdedit /set %Guid% osdevice partition=C:
bcdedit /set %Guid% path \Windows\system32\winload.exe
bcdedit /set %Guid% systemroot \Windows
bcdedit /set %Guid% locale zh-CN
bcdedit /displayorder %Guid% /addlast
============================脚本结束============================
4、 新建一个VHD启动项 [已验证]
============================脚本开始============================
@echo off
color 1f
bcdedit.exe /timeout 7
for /f "delims={,} tokens=2" %%a in ('bcdedit /create /d "Boot_VHD" /application osloader ') do set Guid={%%a}
bcdedit /set %Guid% inherit {bootloadersettings}
bcdedit /set %Guid% device vhd=[C:]\BOOT.VHD
bcdedit /set %Guid% osdevice vhd=[C:]\BOOT.VHD
bcdedit /set %Guid% path \Windows\system32\winload.exe
bcdedit /set %Guid% locale zh-CN
bcdedit /set %Guid% systemroot \Windows
bcdedit /displayorder %Guid% /addlast
============================脚本结束============================
5、 新建一个NT5(XP、2003)启动项 [已验证]
============================脚本开始============================
@echo off
color 1f
bcdedit.exe /timeout 7
bcdedit /create {ntldr} /d "XP OS Loader"
bcdedit /set {ntldr} device partition=C:
bcdedit /set {ntldr} path \ntldr
bcdedit /displayorder {ntldr} /addlast
============================脚本结束============================