Link to home
Start Free TrialLog in
Avatar of Ezhil7
Ezhil7

asked on

To dwnload more than one files from remote site.

I want to connect a remote server and download all the files present in the file in one event.
It is important that connecting the server and download the files present in the sever one by one has to be done in one click.If three files are present in the remote site while we are conecting automatically it has to dowm load the three files one by one.
Avatar of sunnycoder
sunnycoder
Flag of India image

what protocol ? what language ? ...

also explain the scenario a bit ...

how do you get the location for all files ... do you get it as an input or do you wish to download all links on a web page ... if latter then to what depth ?

In short, question needs some serious clarifications
Avatar of Ezhil7
Ezhil7

ASKER

I want it in VB 6.0.And the protocol is TCP. We dont know what are all the files in the remote site it has to download all the files present in the remote site.
With TCP alone it is not possible to get a directory listing at the remote site ... You need some application level protocol running on top of TCP e.g. FTP which is capable of providing the file listing of the remote site
Avatar of Ezhil7

ASKER

I am not sure.If you have any pgm please send.I have no idea in download.
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

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
Avatar of Ezhil7

ASKER

Hi Sunny

here is the exact scenario,

We have an enterprise application and a third party product, enterprise application sends one or more files to our FTP site on 24 * 7 basis and third party software picks those files and store it into our local folder for further process. Third party software has suppose to pick the files immediately (say within 1 min) from our FTP site but sometimes due to some problem it fails, so what we want to do is, to have a program which watch our FTP site on 24 * 7 basis, and if any files resides there for more than 5 minutes(means the failure of 3rd party software), we need to fetch that files and store it to local folder.

This program has to run without any user interaction on 24 x 7 basis.

Any help/Similar coding/suggestions are welcome.

Thanks.




SOLUTION
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
farsight has given you the basic steps ...

you need a program which will connect as FTP client to your remote machine ... It will periodically do an ls to get the remote directory listing and asve it .... each ls is compared to the previous ls to detect the new files ... then your program need to check the local directory to see if the file has already been received ... If not, then it brings in the file itself
Use XCeed's QuickFTP control.

It allows you to do *exactly* that in one line of code.