I have been asked to take an existing MSDOS script written for W2K and capture FTP error info.
Inside a DOS script, a second file is called with FTP info. If there are any errors, I want to capture them.
For example, inside the existing DOS script, it says something like:
ftp -n -s:PushPosPayAcct.FTP>C:\l
Where it calls a file named PushPosPayAcct.FTP.
I found an article on how to get the ftp output info written to a log file:
But this method gets all output from the FTP process.
Is there any way to capture a failure. Specifically, I am looking for errors such as 'path not found' or 'login failed'. One suggestion here was to possibly read the system FTP log.
Any info would be appreciated.