1、打开记事本,然后复制粘贴以下代码,另存为“修复BCD引导.bat”;(注意以下代码以系统在C盘的为准,如果不是请更改partition=C:中的C改为其他盘符);
path C:Windowssystem32
bcdedit /store C:bootbcd /create {bb68514c-cff8-11dd-aca9-a775dac50ae8} /d “Microsoft Windows 7” /application osloader
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} device partition=C:
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} path Windowssystem32winload.exe
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} locale zh-CN
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} inherit {bootloadersettings}
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} osdevice partition=C:
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} systemroot Windows
bcdedit /store C:bootbcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} nx optin
bcdedit /store C:bootbcd /displayorder {bb68514c-cff8-11dd-aca9-a775dac50ae8} /addlast
bcdedit /store C:bootbcd /timeout 5
pause
2、然后在WinPE下执行这个文件,如下图:
通过上述方法操作,就可以修复Win7旗舰版BCD引导错误bat代码。之后还可以把这个BAT文件留着,需要时还可以用。