My application needs to upload files on a remote server. I think FTP is the best way to do that and I'm writing the FTP batch (running on Windows 2000).
The basic scripting is ok (connexion and put command) but I cannot figure out how to know whether the command has been completed or not.
In fact my application need to upload a specific file to the remote host and DELETE it locally if the FTP was done correctly. If FTP failed, the local file should NOT be deleted and it will be uploaded in a fruther attempt.
What could I use in order to get the result (return code) of my FTP command (I'm using FTP -s:script.ftp)?
Thank you in advance for your help.