for /F "tokens=3" %%* in ('test.exe /c 127.0.0.1 ^| findstr "\<1\>"') do cls & echo 密码错误 & goto :max
我只能查一个参数, 这个程序有四个参数。
1 密码错误
2 连接超时
3 未知错误
4 关闭连接
请问这句代码该怎么写呢? 不可能要运行四次test.exe吧?
望各位指教
Last edited by hcosoft on 2011-1-25 at 06:12 ]
for /F "tokens=3" %%* in ('test.exe /c 127.0.0.1 ^| findstr "\<1\>"') do cls & echo 密码错误 & goto :max
I can only check one parameter, and this program has four parameters.
1 Password error
2 Connection timeout
3 Unknown error
4 Close connection
Ask: How should this code be written? It's impossible to run test.exe four times?
Hope to get advice from everyone
Last edited by hcosoft on 2011-1-25 at 06:12 ]