Results 1 to 3 of 3

Thread: FTP using VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    1

    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

  2. #2
    Si_the_geek
    Guest
    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)

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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
  •  



Click Here to Expand Forum to Full Width