|
今天拉上网线了,发个贴子庆祝一下。
每次修改BCD文件的时候,用BCDTools只能一条一条的添加,当条目多的时候就更不方便了,因为我的外置鼠标有毛病了,而触摸板我又用不习惯,所有就写了个批处理,按照模板中的内容批量添加到BCD文件中。
先说下模板内容:
- [BootSection]
- ;方括号的内容任意,只为了区分一个条目的开始
- ;Windows Boot Manager
- ;--------------------
- ;分号打头的行是注释
- identifier={bootmgr}
- description=Windows Boot Manager
- locale=zh-CN
- inherit={globalsettings}
- ;default={default}
- ;displayorder={default}
- toolsdisplayorder={memdiag}
- timeout=5
- @loader=bootmgr
- ;@loader=代表该条目类型,bootmgr代表这一节的内容是创建一个启动管理器;osloader代表Windows Vista以上系统的启动项;ntldr代表XP系统的启动项;bootsector代表实模式启动项如grldr;Device代表创建一个启动设备。如果没有定义@loader或为空,并且identifier不为空,则按该ID值创建条目,如identifier={globalsettings},则创建一个全局设置供其它项继承。
- ;除了@打头的变量和注释的变量都将添加到BCD文件中。
- ;默认创建的BCD文件名为mybcd,如要修改,编辑批处理文件修改set bcd=mybcd这一行
- ;默认的配置文件名为bcd.ini,如要修改,编辑批处理文件修改set bcdcfg=bcd.ini这一行
-
- [BootSection]
- ;Windows Boot Loader
- ;-------------------
- ;identifier={default}
- device=ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- path=\windows\system32\boot\winload.exe
- description=安装 Windows 7
- locale=zh-CN
- inherit={bootloadersettings}
- osdevice=ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- systemroot=\windows
- detecthal=Yes
- winpe=Yes
- sos=No
- debug=No
- ems=Yes
- @default=Yes
- @loader=osloader
- [BootSection]
- ;Windows Boot Loader
- ;-------------------
- ;identifier={ae244c6a-9410-11df-8d8b-005056c00001}
- device=ramdisk=[boot]\WinPE\WinPE_x86.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- path=\windows\system32\boot\winload.exe
- description=启动 32位 Windows PE
- locale=zh-CN
- inherit={bootloadersettings}
- osdevice=ramdisk=[boot]\WinPE\WinPE_x86.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- systemroot=\windows
- detecthal=Yes
- winpe=Yes
- ems=Yes
- @loader=osloader
- [BootSection]
- ;Windows Boot Loader
- ;-------------------
- ;identifier={cc2fae8e-9410-11df-8d8b-005056c00001}
- device=ramdisk=[boot]\WinPE\WinPE_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- path=\windows\system32\boot\winload.exe
- description=启动 64位 Windows PE
- locale=zh-CN
- inherit={bootloadersettings}
- osdevice=ramdisk=[boot]\WinPE\WinPE_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- systemroot=\windows
- detecthal=Yes
- winpe=Yes
- ems=Yes
- @loader=osloader
- [BootSection]
- ;Windows Boot Loader
- ;-------------------
- ;identifier={061e6d2c-9418-11df-8d8b-005056c00001}
- device=ramdisk=[boot]\WinPE\WinPE_Standard_x86.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- path=\windows\system32\boot\winload.exe
- description=启动 32位 Windows PE Standard
- locale=zh-CN
- inherit={bootloadersettings}
- osdevice=ramdisk=[boot]\WinPE\WinPE_Standard_x86.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- systemroot=\windows
- detecthal=Yes
- winpe=Yes
- ems=Yes
- @loader=osloader
- [BootSection]
- ;Windows Boot Loader
- ;-------------------
- ;identifier={cb9f5b02-9417-11df-8d8b-005056c00001}
- device=ramdisk=[boot]\WinPE\WinPE_Standard_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- path=\windows\system32\boot\winload.exe
- description=启动 64位 Windows PE Standard
- locale=zh-CN
- inherit={bootloadersettings}
- osdevice=ramdisk=[boot]\WinPE\WinPE_Standard_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
- systemroot=\windows
- detecthal=Yes
- winpe=Yes
- ems=Yes
- @loader=osloader
- [BootSection]
- ;Windows Boot Loader
- ;-------------------
- ;identifier={2960d7ca-9413-11df-8d8b-005056c00001}
- device=ramdisk=[boot]\WinPE\Win7PE.WIM,{7619dcc8-fafe-11d9-b411-000476eba25f}
- path=\windows\system32\boot\winload.exe
- description=启动 Windows 7PE3.0 正式版
- locale=zh-CN
- inherit={bootloadersettings}
- osdevice=ramdisk=[boot]\WinPE\Win7PE.WIM,{7619dcc8-fafe-11d9-b411-000476eba25f}
- systemroot=\windows
- detecthal=Yes
- winpe=Yes
- ems=Yes
- @loader=osloader
- [BootSection]
- ;Windows Legacy OS Loader
- ;------------------------
- identifier={ntldr}
- device=boot
- path=\i386\SETUPLDR.BIN
- description=安装 Windows XP
- @loader=ntldr
- [BootSection]
- ;Windows Boot Loader
- ;-------------------
- ;identifier={6dc63144-940e-11df-8d8b-005056c00001}
- device=boot
- path=\boot\SETUPLXP.BIN
- description====我心如水_PE_v15.00_系列===
- locale=zh-CN
- inherit={bootloadersettings}
- osdevice=boot
- systemroot=boot
- detecthal=Yes
- winpe=Yes
- ems=Yes
- @loader=osloader
- [BootSection]
- ;Windows Legacy OS Loader
- ;------------------------
- ;identifier={a7022110-971b-11df-ad24-b1e8eb19eb65}
- device=boot
- path=\boot\SETUPLXP.BIN
- description=1.Microsoft WinXP Sp3 PE
- @loader=ntldr
- [BootSection]
- ;Windows Legacy OS Loader
- ;------------------------
- ;identifier={8601d808-940e-11df-8d8b-005056c00001}
- device=boot
- path=\boot\SETUPL03.BIN
- description=2.Windows Server 2003 PE
- @loader=ntldr
- [BootSection]
- ;Windows Legacy OS Loader
- ;------------------------
- ;identifier={9835346e-9253-11df-8463-000ae6f70225}
- device=boot
- path=\boot\SETUPLWQ.BIN
- description=3.Server 2003 PE 全内置网启版
- @loader=ntldr
- [BootSection]
- ;Windows Legacy OS Loader
- ;------------------------
- ;identifier={9c936350-9253-11df-8463-000ae6f70225}
- device=boot
- path=\boot\SETUPLWH.BIN
- description=4.Server 2003 PE 全内置维护版
- @loader=ntldr
- [BootSection]
- ;Windows Legacy OS Loader
- ;------------------------
- ;identifier={ac1c35b8-9253-11df-8463-000ae6f70225}
- device=boot
- path=\WXPE\SETUPLDR.BIN
- description=5.Server 2003 PE 小内存维护版
- @loader=ntldr
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={d6692e84-9253-11df-8463-000ae6f70225}
- device=boot
- path=\boot\GRLDR.BIN
- description=6.切换到 GRUB 菜单
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={f099831c-9253-11df-8463-000ae6f70225}
- device=boot
- path=\boot\LOADER.BIN
- description=7.切换到 EZBOOT 菜单
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={eeab6256-9680-11df-8d90-005056c00001}
- device=boot
- path=\boot\MAXDOS.BIN
- description=8.MaxDOS Plus 工具箱
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={0b4ec164-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\DTS117U.BIN
- description=9.DOS 时代组合工具箱
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={2bfa7aac-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\GHOST.BIN
- description=10.GHOST 多版本集合包
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={4ae85c36-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\G_GDISK.BIN
- description=11.G_GDISK 一键分区
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={74e909c2-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\DM957E.BIN
- description=12.DM 9.57 快速分区
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={91617e7c-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\HDDREG.BIN
- description=13.磁盘坏道修复 HDDREG
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={aa4409dc-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\DGDOS.BIN
- description=14.DISKGEN 硬盘管理
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={cef5bb04-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\HDBOOT.BIN
- description=15.从硬盘启动计算机
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={eb40e310-9681-11df-8d90-005056c00001}
- device=boot
- path=\boot\REBOOT.BIN
- description=16.重新启动计算机
- @loader=bootsector
- [BootSection]
- ;Real-mode Boot Sector
- ;---------------------
- ;identifier={0d608b30-9682-11df-8d90-005056c00001}
- device=boot
- path=\boot\POWEROFF.BIN
- description=17.关闭计算机
- @loader=bootsector
- [BootSection]
- ;EMS Settings
- ;------------
- identifier={emssettings}
- bootems=Yes
- [BootSection]
- ;Global Settings
- ;---------------
- identifier={globalsettings}
- locale=zh-CN
- inherit={emssettings}
- [BootSection]
- ;Boot Loader Settings
- ;--------------------
- identifier={bootloadersettings}
- locale=zh-CN
- inherit={globalsettings}{$x20}{hypervisorsettings}
- ;{$x20}代表空格
- [BootSection]
- ;Hypervisor Settings
- ;-------------------
- identifier={hypervisorsettings}
- description=Hypervisor Settings
- hypervisordebugtype=Serial
- hypervisordebugport=1
- hypervisorbaudrate=115200
- [BootSection]
- ;Device options
- ;--------------
- ;identifier={7619dcc8-fafe-11d9-b411-000476eba25f}
- ramdisksdidevice=boot
- ramdisksdipath=\boot\boot.sdi
- @loader=Device
-
复制代码
现在有事要出去,等完了再加其它说明,其实看看程序很简单,要添加功能很容易。
现先把文件传上来。 |
评分
-
查看全部评分
|