使用FTP时,生成了一个日志文件
ftp.exe -n -s:%temp%\Ftp.bat >>"ftp.log"
现在想捕捉下面字符串中的错误信息
type ftp.log|findstr "530 Please login with USER and PASS"&&goto:error
type ftp.log|findstr "Not connected"&&goto:error
type ftp.log|findstr "The system cannot find the file specified"&&goto:error
type ftp.log|findstr "File not found"&&goto:error
各位高手:
1. 字符串中的‘ ’空格是不时“或”的意思
比如:"File not found"中是不是找到File或not或found就goto:error
2.怎样把这几个语句写道一起呢?
只用一个type ftp.log|findstr “。。。。。。。。。。”
请各位高手指点谢谢
ftp.exe -n -s:%temp%\Ftp.bat >>"ftp.log"
现在想捕捉下面字符串中的错误信息
type ftp.log|findstr "530 Please login with USER and PASS"&&goto:error
type ftp.log|findstr "Not connected"&&goto:error
type ftp.log|findstr "The system cannot find the file specified"&&goto:error
type ftp.log|findstr "File not found"&&goto:error
各位高手:
1. 字符串中的‘ ’空格是不时“或”的意思
比如:"File not found"中是不是找到File或not或found就goto:error
2.怎样把这几个语句写道一起呢?
只用一个type ftp.log|findstr “。。。。。。。。。。”
请各位高手指点谢谢
