Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generate directory listing from remote web server

Status
Not open for further replies.

johnv20

Programmer
Sep 26, 2001
292
US
Hi,
I need to be able to generate a list of files from a virtual directory on a 2nd web server.

While the code below works fine for the local system
Code:
DirectoryInfo myDir = new DirectoryInfo(Server.MapPath(""));

If I try & utilise a path of howvere I get an error that this is not a valid virtual path

Anyone have any ideas how I can achieve this ?

Thanks
 
You'll need to use the absolute local path of the virtual server e.g. "\\server2\dirlist"



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top