Link to home
Start Free TrialLog in
Avatar of yanadavid
yanadavid

asked on

Get a file from FTP site (using VB code)

I need to build a program that will take multiple files from ftp site every hour and placing info into my db. I just need to have a syntax that will get multiple files from ftp and placing into db.  
Avatar of hes
hes
Flag of United States of America image

Include the inet control and use

Dim b() As Byte
Dim strURL As String
strURL = "FTP://Your FTP Site/FileName"
b() = Inet1.OpenURL(strURL, icByteArray)
Hi, yanadavid,

Try this address - http://www.pgacon.com/bv13.htm . I think you'll find there what you need to retrieve your file.

Good luck,
Gilberto
Avatar of yanadavid
yanadavid

ASKER

To the previous question, what about if on FTP site i have few files (txt).  In this case how it is going to like.
ASKER CERTIFIED SOLUTION
Avatar of dreamvb
dreamvb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi yanadavid,
go to the link,
http://www.vbip.com/winsock/winsock_ftp_client_01.asp

download the file wsc_ftp_client.zip.
It is very nice source to start FTP programs. The program is a FTP Client sample application with full source codes. Just try this


hi dreamvb. Can you please answer to my edit question about the same issue of ftp (I need to extract multiple files from ftp at the same time.)
thanx.  (this question is 50 pts)