Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Alternative to System.IO.Directory

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2007
    Posts
    180

    Resolved [RESOLVED] [2005] Alternative to System.IO.Directory

    Im trying to get a list of .htm files on another web server. The web server with the files is on the same Intranet as the webserver that needs the file listing, but it isnt mapped and shouldnt be mapped to the server that needs the listing.

    Right now my program uses Directory.GetFiles() to get file listings on the same server as the webpage, but it doesnt accept URI formats.

    Does anyone know of a way that I can crawl a directory or get a listing from another server? I tried googling but thats all advertisements and msdn didnt turn up anything.

    I dont want to keep track of it in an xml file or write a script to keep a sitemap. If its not possible to just search the directory then forget it, this is really to make the user interface a little easier.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Alternative to System.IO.Directory

    If the file names are exposed via directory browsing, some sort of a sitemap, etc. then you can do it. Otherwise, you can't, since it's not like viewing a folder on an operating system where everything is visible.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2007
    Posts
    180

    Re: [2005] Alternative to System.IO.Directory

    yea thats what i was thinking, just needed confirmation on it thanks.

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