How to Use VB6 Inet Controls
- 1). Click the Windows "Start" button and type "visual basic" in the search text box. Press "Enter" to open the Visual Basic software.
- 2). Press the "Ctrl" and "O" keys and double-click the VB6 project file you want to edit. Double-click the code file you want to use to program the Inet control. The code loads in your editor.
- 3). Create the Inet variable:
Dim ftp As Inet - 4). Open a URL from the Inet control:
ftp.Execute("ftp://domain.com", "dir")
The command opens the FTP server "domain.com" and runs the "dir" command. The "dir" command displays a list of directories and files on the server. - 5). Download a file from the server:
ftp.Execute ("ftp://domain.com", "GET remotefile myfile.txt")
Replace "myfile.txt" with your own FTP server file you want to download.