CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2003
    Posts
    97

    Retrieving file names from a web directory

    I have a web server that has a directory containing xml files.

    I want to return to a GUI a list of the URLs for the files so that the user can select a xml file to load.

    How on earth do you do it? any ideas? or even just the name of the class I should be using.
    Last edited by zoltan_ie; August 2nd, 2005 at 10:42 AM.

  2. #2
    Join Date
    Jul 2005
    Posts
    4

    Re: Browsing file in a web directory

    Use Directory.GetFiles() to get all of the file names under that directory and then concatenate the web server root directory and each file name (It depends on where your directory is) to get the urls.


    Leo

  3. #3
    Join Date
    Mar 2003
    Posts
    97

    Re: Browsing file in a web directory

    ok, sorry.

    I forgot to say the application will not be running on the same network so that ain't gonna work.

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

Featured