Using the Internet Transfer Control: Part 3
Lets start off with the basics first: connecting.
The first thing we need to do is to set the Protocol property of the Inet control to icFTP. We also need to specify a server address (in the form of a URL) and a username and password to login. If the FTP site doesn't require a username and password, then you can just leave them blank. All of these properties can be set using the Property Page in the IDE, or you can set them at run time:
With Inet1 .Cancel .Protocol = icFTP .URL = "localhost" .Username = "" .Password = "" End With
You may have noticed that there is no specific Connect command in the Inet control, so what we have to do is use the Execute command, which allows us to execute a special FTP command.
(If you have ever used DOS before then you will be familiar with some of the commands used)
Page 2 of 6