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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ITC Syntax

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
I'm having problems downloading a file off an FTP with the Internet Transfer Control in VB6, here's the code I used:

Private Sub Form_Load()
Inet1.Execute "ftp://username:password@ftp://203.137.137.21", "GET /somedir/file.doc C:\My Documents\work\file.doc"
Inet1.Execute "ftp://username:password@ftp://203.137.137.21", "CLOSE"
End Sub

I have also set up relevant info in the properties box but still can't figure out why I get an "Unable to connect to remote host" message.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top