level 1
我原本的意思是想这样: 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
两处写错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