使用BCDEdit命令修改VISTA/WIN7启动项

来源:互联网 发布:sopcast网络电视 编辑:程序博客网 时间:2024/06/07 06:27

很多人都知道XP更改启动项,只需更改C:\boot.ini文件即可,而在VISTA/WIN7上,却找不到该文件,系统属性里也没有编辑按钮。其实用BCDEdit命令就可以更改。
 
在命令行输入bcdedit回车,可查看当前所有启动项
每个启动项都有自己的标识符(ID),如:
{bootmgr} 启动管理器
{ntldr} NT Loader (如XP启动项)
{current} 当前硬盘或分区
或是形如{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}的标识符
 
常用命令:
 
备份启动项:bcdedit /export "D:\BCD Backup\BcdBackFile"
恢复启动项:bcdedit /import "D:\BCD Backup\BcdBackFile"
 
删除启动项:bcdedit /delete {ID} /f
 
设定启动项各属性:bcdedit /set {ID} 属性名 属性值
如:bcdedit /set {current} Description "水榭兰舟7"
 
设定默认项:bcdedit /default {current}
 
设置启动项显示顺序:bcdedit /displayorder {ID1} {ID2}
如:bcdedit.exe /displayorder {ntldr} {current}
将首先显示Windows XP等,然后再显示Windows Vista等

设定等待时间(秒):bcdedit /timeout 3


转载:http://blog.163.com/csbqf@126/blog/static/612243712010125115622114/

原创粉丝点击