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

How do I get VB to ftp a file???

Status
Not open for further replies.

JasonParr

Programmer
Jun 11, 2001
8
0
0
US
I need to pull a file off a network and want to do it from within a vb program. The file has a static name and location and needs to be saved to the users desktop.
 
try this
1. add the Microsoft Internet Transfer Control 6.0 to the project

'Place this code in some command button . .
With Inet 'the object added when you add the control in (1.)
.URL = "ftp://111.111.111.111/" 'enter your own server addr.
.UserName = "UsernameInServer"
.Password = "PasswordInServer"
.Execute , "get FileYouWantToGet DestinationInSystem"
End With
i haven't run this but it should work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top