楼 主
判断记事中是否有某个参数
发表于 2007-12-13 20:45 · 中国 广东 惠州 电信
初级用户
★★
积分 126
发帖 53
注册 2007-02-04 19:21
19年会员
UID 78631
性别 男
来自 -
状态 离线
如何健一个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 楼
发表于 2007-12-14 12:01 · 中国 湖北 武汉 电信
版主
★★★★★
积分 11,386
发帖 4,938
注册 2006-07-23 17:10
20年会员
UID 59080
状态 离线
findstr "/detecthal" boot.ini && del /a boot.ini
第 3 楼
^_^
发表于 2007-12-16 00:21 · 中国 广东 惠州 电信
初级用户
★★
积分 126
发帖 53
注册 2007-02-04 19:21
19年会员
UID 78631
性别 男
来自 -
状态 离线
用--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 楼
发表于 2007-12-16 01:34 · 中国 湖北 武汉 电信
版主
★★★★★
积分 11,386
发帖 4,938
注册 2006-07-23 17:10
20年会员
UID 59080
状态 离线
这样试试:
findstr "\/detecthal" boot.ini && del /a boot.ini
论坛跳转: