中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-06 21:48
48,039 主题排行 / 350,124 发帖 / 今日 0 篇 / 48,252 会员排行
DOS批处理 & 脚本技术(批处理室) » 判断记事中是否有某个参数
可打印版本  725 / 3
第1楼 guo882633 发表于 2007-12-13 20:45
初级用户 发帖 53 积分 126 来自 -
判断记事中是否有某个参数
如何健一个P批处理来判断boot.ini文件内是否有 /detecthal 参数.如有就删除boot.ini文件.

boot.ini内容如下i
[boot loader]
timeout=2
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /detecthal
c:\mxldr=maxdos v6
第2楼 lxmxn 发表于 2007-12-14 12:01
版主 发帖 4,938 积分 11,386
findstr "/detecthal" boot.ini && del /a boot.ini
第3楼 guo882633 发表于 2007-12-16 00:21
初级用户 发帖 53 积分 126 来自 -
^_^
用--findstr "/detecthal" boot.ini && del /a boot.ini --会有错误的提示..提示如下
C:\>findstr "/detecthal" boot.ini && del boot.ini
FINDSTR: 忽略 /d
FINDSTR: 忽略 /t
FINDSTR: 忽略 /c
FINDSTR: 忽略 /t
FINDSTR: 忽略 /h
FINDSTR: 忽略 /a
第4楼 lxmxn 发表于 2007-12-16 01:34
版主 发帖 4,938 积分 11,386
这样试试:
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023