|
-
Nov 4th, 2001, 10:07 AM
#1
Thread Starter
New Member
FTP using VB
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
-
Nov 5th, 2001, 05:13 AM
#2
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)
-
Nov 5th, 2001, 05:19 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|