Listing a directory with pdf files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • therina
    New Member
    • Aug 2008
    • 3

    Listing a directory with pdf files

    Hi.
    I would like to make a list of pdf files in a directory.
    The list should consist of the file names and the option for downloading.

    I will be very thankful to anyone who can help me with this.

    Regards,
    Darina
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    The Directory class has a .GetFiles() function that can take a pattern argument. In your case you could supply "*.pdf" and it would return a string[] of all the files that match that pattern in the given directory

    Comment

    • joedeene
      Contributor
      • Jul 2008
      • 579

      #3
      ya, just as plater said, then its relatively simple to put them into a textbox or listbox, or whatever control you are gonna use, also, you mentioned downloading? are you suggesting getting .pdf files off of a ftp connection ?

      Comment

      Working...