标题: [文本处理] 如何用批处理获取某个值在进行应用? [打印本页]
作者: vstar0v0 时间: 2011-3-7 03:21 标题: 如何用批处理获取某个值在进行应用?
我表达的可能不太好 下面是大概写的意思 不过是错误的 做一个硬盘安装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 编辑 ]
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |