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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display all virtual directories on web server ?

Status
Not open for further replies.

andrewd27

Programmer
Nov 12, 2001
16
AU
I would like to dynamically display a list of web applications I have running on IIS as href links so
the user can go directly to any new web applications
that have been added to the web site from the root
application.
I know you can return a physical directory location
given a virtual directory name but I would like
a collection of virtual directory names on my server ?
e.g
at homepage will dynamically show the following sites on the web server are running ...
 
You can use file system object to get the names of the directorys. Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **

 
thanks but I have looked at the filesystemobject...

and yes with this I can get a list of recursive directories on my system and get lots of properties but as far as I can see I cannot test each folder to see if it has a virtual alias set up on the web server.

The tricky bit is that I might have a web application in a directory called c:\myapplication\this\next\myhome
but on the properties tab (or in IIS) the web application may be simply called "Norad" so the web address would be
 
Thanks for that I have printed that article.
However this only works with .NET and IIS5.1 or higher.

Anything similar for IIS4.x under NT4.0 ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top