Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP download using VB6 or VB2005

Status
Not open for further replies.

pelagic

Programmer
Nov 7, 2002
97
US
Hi there,

I have the ftp site with user name and password.

ftp://69.129.179.339/ (Sample only)
username: aname
password: apassword
In this site I have 2 folders, 2 text files, and 3 Excel files.

I like to write a VB program to download these folders and files from this ftp site automatically base on the time interval that I set.

Thank you very much for your help

 
Here is a thread with multiple examples that I found very useful.

thread708-970319

Swi
 
Can you tell us a little bit about the solution you found?
 
I have found some solution and still testing to see if it works.

Thank you,

Private Sub cmdDownload_Click()
Dim host_name As String

Enabled = False
MousePointer = vbHourglass
txtResults.Text = "Working"
txtResults.SelStart = Len(txtResults.Text)
DoEvents

host_name = txtHost.Text
If LCase$(Left$(host_name, 6)) <> "ftp://" Then host_name = "ftp://" & host_name
inetFTP.URL = host_name

inetFTP.UserName = txtUserName.Text
inetFTP.Password = txtPassword.Text

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top