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

Connecting via FTP

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

I need to create a VB application which can connect to an FTP server and download a file froma directory and which replaces an older version of the file on the client computer.

So I used the Microsoft Internet Transfer Control 6.0 and filed out all the relevant connection data in the properties box and added this code:

Private Sub Form_Load()
Inet1.Execute , "GET /mydir/test.mdb C:\My Documents\test.mdb"
End Sub

But it doesn't download and replace the file. What am I doing wrong?
 
Is the ftp server unix or microsoft. This makes a difference for case sensitivity on the path.

Tazzmann
 
TazzMann,

The server is microsoft IIS

Thanks.
 
first, I would change the first set of forward slashes to back slashes. This is a physical directory on the server and not a web directory.

In other words:
GET C:\mydir\test.mdb 'This is the local direcotyr on the server C:\temp\test.mdb 'this is the local directory on the clients pc.

Hope this made sense


Tazzmann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top