Link to home
Start Free TrialLog in
Avatar of AlexF777
AlexF777

asked on

Is there any way to determine ErrorLevel when executing an FTP script

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of PaulCaswell
PaulCaswell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think Paul has a good idea.  You just need to know what you are looking for in the output.  Either search for success messages or error messages with FIND or FINDSTR.  If you are more specific we can help with a script to help you get started.

Depending on what you are doing with FTP, you can also use a different executable that will return an errorlevel (like NCFTPPUT or NCFTPGET or WGET ... which would have to be downloaded or installed on your PC).
Avatar of SysExpert
I would use a command line FTP program that returns Errorlevel info and an error file.
A free one that works for me is

WCL_FTP - Search in google, small fast and has good error handling and logging.

I hope this helps !