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?
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?