关于cmd中find用法
dos吧
全部回复
仅看楼主
level 1
猪猪5266 楼主
我原本的意思是想这样: set /p ph=请输入你的密码: find "%ph%" d:\cba\abc.txt if errorlevel=0 (goto a8) else (goto a7) 为什么不行?哪里错了 另外 我c盘根目录下的Autoexec.bat之前被我删了, 和Autoexec.bat有没有关系? 好像 主要是这句不对 if errorlevel=0 (goto a8) else (goto a7) 希望高手指点一下,谢谢啊``
2008年02月26日 08点02分 1
level 1
猪猪5266 楼主
吧主 啊 你就回答一下那
2008年02月27日 07点02分 3
level 1
两处写错find 是要搜索的文件写在前,搜索的字符写在后相等是用两个等于号的find "%ph%" d:\cba\abc.txt 改为 find d:\cba\abc.txt "%ph%"if errorlevel=0 (goto a8) else (goto a7) 改为 if errorlevel==0 (goto a8) else (goto a7)
2008年03月08日 18点03分 4
level 0
if errorlevel=0 (goto a8) else (goto a7)应该改成if errorlevel=0 (goto a8) else (goto a7)
2008年05月26日 10点05分 5
level 0
额,没看清楚,应该是if %errorlevel%==0 (goto a8) else (goto a7)
2008年05月26日 10点05分 6
level 0
都不对。。。 在cmd下要先type d:\cba\abc.txt 然后接 find 命令
2008年06月26日 16点06分 7
level 0
完整的结果是什么呀!大哥们?
2010年05月21日 15点05分 8
level 0
我傻了!
2010年05月22日 08点05分 9
level 1
2013年08月07日 00点08分 10
1