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
Printable View
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
Try using the Microsoft Internet Transfer Control for that.
Project->References
Thanks for the reply.
I will take a look.
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
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