Downloading Multiple files from FTP Server

  • Let me say I have some 20 -  30 files   in a location , say,

    http://FTP.SERVER.COM and the path initially where the files are available  is

    say \PATH\. Now  I have 20 files, say,

    1.   k1.txt

    2.   ds2.xls

    3 .  \inerpath\kn.jpg

    4 .  pr.zip

    5.   abc.lmn

    .

    .

    .

    .

    20. an.klp

                     Now, I will select  only 6 files say file No 1 ,4,

    7,8 ,9 and 20. I to download these 6 files  I have to loop through each

    file to download files. Now I dont want the loop.I just want get into

    the FTP task "once" and select only the above 6 files (As a string?) and download these files. Is this possible?

    I can do this . \path\*.zip. This works. But the above problem is not working . Can anybody help?

     

    Thanks,

    Kiran

  • This was removed by the editor as SPAM

  • regular old FTP has an MGET command that will allow you to fetch several files matching a pattern. 

  • Ya, But this wont work out if the names of the files keep varying.

  • True, sounds like either you will need to have that directory cleaned out after you snag the files you want or you are going to have to keep a list of the files you have FTPd and parse a directory to see whats not on the list already.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply