日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

使用BCDEDIT创建BCD文件

發(fā)布時間:2023/12/13 40 生活家
生活随笔 收集整理的這篇文章主要介紹了 使用BCDEDIT创建BCD文件 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

網(wǎng)上找了好久,總算找到一個完全的BCD文件編輯過程的代碼,分享下:

###第1步################################################################################################################
bcdedit /createstore c:ootcd
##創(chuàng)建一個記錄文件123 (路徑和文件名隨便啦)
###第2步###############################################################################################################
bcdedit /store c:ootcd /create {bootmgr} /d "Windows Boot Manager"
##創(chuàng)建主菜單入口ID
bcdedit /store c:ootcd /set {bootmgr} device partition=c:
##設置主菜單引導程序所在分區(qū)
bcdedit /store c:ootcd /timeout 5
##設置主菜單的顯示時間30秒
bcdedit /store c:ootcd /set {bootmgr} locale "zh-CN"
##設置主菜單的語言為中文
###第3步#################################################################################################################
bcdedit /store c:ootcd /create /d "Microsoft Windows Vista" /application osloader
##添加Vista啟動項ID
###第4步#############這里會生成一串數(shù)字ID,復制第3步生成的數(shù)字ID并替換下面的{數(shù)字Id},如果你還裝Win2008的話就再多做一個第3步和第4步#######
bcdedit /store c:ootcd /set {數(shù)字Id} device partition=c:
##設置Vista引導文件所在分區(qū)
bcdedit /store c:ootcd /set {數(shù)字Id} path windowssystem32winload.exe
##設置Vista引導文件路徑
bcdedit /store c:ootcd /set {數(shù)字Id} osdevice partition=c:

##設置Vista所在分區(qū)
bcdedit /store c:ootcd /set {數(shù)字Id} systemroot windows
##設置Vista所在文件夾
bcdedit /store c:ootcd /set {數(shù)字Id} locale "zh-CN"
##設置Vista高級啟動菜單的語言為中文
bcdedit /store c:ootcd /displayorder {數(shù)字Id} /addfirst
##添加Vista到主菜單啟動列表的最后一項(addlast是顯示在頂部)
bcdedit /store c:ootcd /default {數(shù)字Id}
##設置Vista操作系統(tǒng)為默認啟動的系統(tǒng), {legacy}是舊版本的Windows
###第5步################################################################################################################
bcdedit /store c:ootcd /create {ntldr} /d "Microsoft Windows XP Professional"
##添加xp,2003啟動項ID
bcdedit /store c:ootcd /set {ntldr} device partition=d:
##設置xp,2003引導文件所在分區(qū)
bcdedit /store c:ootcd /set {ntldr} path 
tldr
##設置xp,2003引導文件路徑(98,me,xp,200,2003是用ntldr啟動的)
bcdedit /store c:ootcd /displayorder {ntldr} /addfirst
##添加xp,2003到主菜單啟動列表的最后一項(addlast是顯示在底部)
###第6步################################################################################################################
bcdedit /store c:ootcd /create {memdiag} /d "Windows 內(nèi)存診側"
##添加windows內(nèi)存診側啟動項ID
bcdedit /store c:ootcd /set {memdiag} device partition=c:
##設置windows內(nèi)存診側引導文件所在分區(qū)
bcdedit /store c:ootcd /set {memdiag} path ootmemtest.exe
##設置windows內(nèi)存診側啟動程序文件路徑
bcdedit /store c:ootcd /toolsdisplayorder {memdiag} /addlast
##添加windows內(nèi)存診側到主菜單工具列表的最后一項(addfirst是顯示在頂部)
bcdedit /store c:ootcd /set {memdiag} locale "zh-CN"
##設置windows內(nèi)存診側的語言為中文
###第7步#################################################################################################################
bcdedit /export c:456
##備份原有的系統(tǒng)引導記錄到 c:456
bcdedit /import c:ootcd
##記錄文件信息導入到系統(tǒng)引導記錄
bcdedit /enum all

##察看系統(tǒng)引導記錄中的所有信息
###OK完成了!!##############################################################################################################

創(chuàng)建完成后的效果:

Windows 啟動管理器
--------------------
標識符                  {bootmgr}
device                  partition=C:
description             Windows Boot Manager
locale                  zh-cn
default                 {default}
displayorder            {default}
                        {ntldr}
toolsdisplayorder       {memdiag}
timeout                 5

Windows 啟動加載器
-------------------
標識符                  {default}
device                  partition=C:
path                    windowssystem32winload.exe
description             Microsoft Windows Vista
locale                  zh-cn
osdevice                partition=C:
systemroot              windows

Windows 內(nèi)存測試程序
---------------------
標識符                  {memdiag}
device                  partition=C:
path                    ootmemtest.exe
description             Windows Memory Diag
locale                  zh-cn

Windows 舊 OS 加載器
------------------------
標識符                  {ntldr}
device                  partition=D:
path                    
tldr
description             Microsoft Windows XP

啟動入口最主要是四個部分:

Identifier標識符——啟動入口的系統(tǒng)標識,可能是bootmgr、current或id形式等。

device設備——一般是驅(qū)動器路徑或虛擬映像,系統(tǒng)啟動引導后入口。

path路徑——是device設備的位置,系統(tǒng)用來定位啟動文件。

description描述——顯示描述,也就是大家見到的菜單顯示。

{bootmgr} ——啟動管理器
{current}——當前操作系統(tǒng),啟動時選擇的系統(tǒng)
{default} ——缺省默認的啟動項
{ntldr} ——早期Windows加載

轉自:https://www.cnblogs.com/fatt/p/4397615.html

總結

以上是生活随笔為你收集整理的使用BCDEDIT创建BCD文件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。