|
本帖最后由 fuldho 于 2014-4-2 17:48 编辑
主要是生成“标识符”
bcdedit /create /d "启动名称" /application bootsector>%windir%\SYSTEM32\ampe.ini
for /f "tokens=2 delims={" %%i In (%windir%\SYSTEM32\ampe.ini) Do (
set vida=%%i
)
for /f "tokens=1 delims=}" %%i In ("%vida%") Do (
set vid={%%i}
)
bcdedit /set %vid% device partition=c:>nul
bcdedit /set %vid% path \OKLDE.MBR>nul
bcdedit /displayorder %vid% /addlast>nul
del %windir%\SYSTEM32\ampe.ini
另外:OKLDE.MBR是不是被修改过
|
|