标题: 判断记事中是否有某个参数
[打印本页]
作者: guo882633
时间: 2007-12-13 20:45
标题: 判断记事中是否有某个参数
如何健一个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
作者: lxmxn
时间: 2007-12-14 12:01
findstr "/detecthal" boot.ini && del /a boot.ini
作者: guo882633
时间: 2007-12-16 00:21
标题: ^_^
用--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
作者: lxmxn
时间: 2007-12-16 01:34
这样试试:
findstr "\/detecthal" boot.ini && del /a boot.ini