Results 1 to 5 of 5

Thread: ftp control for vb

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Location
    United Kingdom
    Posts
    141

    ftp control for vb

    Anyone familiar / or recommend an FTP control for Visual Basic which would allow multiple FTP requests and run these asynchronously so I do not have to wait for one to finish before startin the next?

    Many thanks
    LongyP

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    longyp

    Try using the Microsoft Internet Transfer Control for that.

    Project->References

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Location
    United Kingdom
    Posts
    141
    Thanks for the reply.

    I will take a look.
    LongyP

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Location
    United Kingdom
    Posts
    141
    I tinkered around with the INET control using the openurl method to download a file from an FTP site.

    Unless I am misusing the control, it does not seem to be multithreaded/asynchronous.

    When I call openurl I have to hand around waiting for this to complete therefore preventing me performing any other downloads.

    I guess you can load multiple occurences of the control is necessary? - but - does the openurl block anyother code executing?

    Thanks
    LongyP

  5. #5
    Hyperactive Member sw_is_great's Avatar
    Join Date
    Nov 2003
    Posts
    330
    Use the standard ftp :

    ftp - file transfer program

    SYNOPSIS
    ftp [ -dgintv ] [ -T timeout ] [ hostname ]

    DESCRIPTION
    The ftp command is the user interface to the Internet stan-
    dard File Transfer Protocol (FTP). ftp transfers files to
    and from a remote network site.

    The client host with which ftp is to communicate may be
    specified on the command line. If this is done, ftp immedi-
    ately attempts to establish a connection to an FTP server on
    that host; otherwise, ftp enters its command interpreter and
    awaits instructions from the user. When ftp is awaiting
    commands from the user, it displays the prompt ftp>.

    OPTIONS
    The following options may be specified at the command line,
    or to the command interpreter:

    -d Enables debugging.

    -g Disables filename "globbing."

    -i Turns off interactive prompting during multiple file
    transfers.

    -n Does not attempt "auto-login" upon initial connection.
    If auto-login is not disabled, ftp checks the .netrc
    file in the user's home directory for an entry
    describing an account on the remote machine. If no
    entry exists, ftp will prompt for the login name of
    the account on the remote machine (the default is the
    login name on the local machine), and, if necessary,
    prompts for a password and an account with which to
    login.

    -t Enables packet tracing (unimplemented).

    -T timeout
    Enables global connection timer, specified in seconds
    (decimal). The timer is reset when anything is sent to
    the server on the control connection, and disabled
    -v Shows all responses from the remote server, as well as
    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