我表达的可能不太好 下面是大概写的意思 不过是错误的 做一个硬盘安装linux用批处理导出当前信息在获取写入这几个参数该怎么处理 谢谢!- bcdedit >>bcdedit.txt
-
- :修改前
- recoverysequence {d8f3df10-4721-11e0-b83f-d12b80c891b2}
- resumeobject {d8f3df0e-4721-11e0-b83f-d12b80c891b2}
-
- :修改后
- recoverysequence {df3df10-472-11e0-83f-12b80c891b2}
- resumeobject {df3df0e-472-11e0-83f-12b80c891b2}
-
- @echo off
- bcdedit /create /d “linux” /application bootsector
- bcdedit >>bcdedit.txt
- for /f "tokens=1* delims==" %%a in (bcdedit.txt) do (
- if defined flag set "num=%%b"&set "flag="
- if "%%a" equ "becdedit" set "flag="
- )
- echo %num%
- bcdedit /set %num% device partition=C:
- bcdedit /set %num% path \linux.mbr
- bcdedit /displayorder %num% /addlast
复制代码 User Script Updates has beenupdated!
[ 本帖最后由 vstar0v0 于 2011-3-7 13:09 编辑 ] |