Results 1 to 4 of 4

Thread: How to Get a Filename from a FTP Server...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    How to Get a Filename from a FTP Server...

    Hi Guys,
    I Need to download Multiple Files from a FTP Site. Since it's not Possible using a Inet Control, I'm going to do the Process by getting all the Files in the Directory first. Then in a Do while Loop, I'm going to get all the Files. For this I need to know how many files are there in the Current Directory, Secondly the name of the Files in the Current Directory, Any help greatly appreciated. Thanks in Advance.
    Regards,
    Ramanan.

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You would use the FTP LS or DIR commands to list the files in a directory.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Exclamation Can u explain me a little bit in Detail...

    Hi Josh,
    The Dir Command would list the current working directory and all the files in it. How should I get a Single Filename. By the by what is the LS I haven't heard it. How to use it. Can u explain me a little bit in detail....

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    LS just dumps the file list down the connection

    To get a single file name, just parse out that string (test it using telnet to see what I mean).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width