Hi
I am using FTP to upload some files to server. I 'm invoking batch file using Shell command in VB.
How do I know whether the FTP 's successfull or not?
Or, how to get FTP return code in VB variable?
Dheeraj
Printable View
Hi
I am using FTP to upload some files to server. I 'm invoking batch file using Shell command in VB.
How do I know whether the FTP 's successfull or not?
Or, how to get FTP return code in VB variable?
Dheeraj
I think the best way is to re-direct the output of the FTP process to a file (if it allows it). You can do this by doing the following in your batch file:
FTP [your parameters here] >c:\temp.txt
which will create the file "c:\temp.txt", and fill it with the output that is usually sent to the screen. You can then open the file to find how it went... (if you don't know how to do this, check out "Open #" in vb help)
I written an ActiveX DLL that uses the API to connect and transfer files to/from a FTP server.
Most of the methods returns a boolean to indicate success or failure.
Best regards