473,396 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting list of Website from IIS "Web Sites" Folder

hi guys,

few days back i've posted a question regarding how can i get the list
of the websites form the IIS, at this location:

http://groups.google.com/group/micro...372cde30df29e7

and i got a nice replay. it worked.

now the problem is different when i tried the code on the different
webserver which has lots of websites but not under the "Default Web
Site" directory. most of the Websites are under the "Web Sites" folder.
and now i want to retrive all those websites list from the IIS. i tried
to get the type of the folder "Web Sites", but i didnt get anything out
of it.

can anyone tell me how can i get all of the websites from the folder
called "Web Sites".

Tools:
IIS 5.1 on Microsoft Windows Server 2003
C#.net 2005

thanks,
Lucky

Oct 18 '06 #1
2 2117
David Wang's blog might be able to help you:

http://blogs.msdn.com/david.wang/arc...iguration.aspx
"Lucky" <tu************@gmail.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
hi guys,

few days back i've posted a question regarding how can i get the list
of the websites form the IIS, at this location:

http://groups.google.com/group/micro...372cde30df29e7

and i got a nice replay. it worked.

now the problem is different when i tried the code on the different
webserver which has lots of websites but not under the "Default Web
Site" directory. most of the Websites are under the "Web Sites" folder.
and now i want to retrive all those websites list from the IIS. i tried
to get the type of the folder "Web Sites", but i didnt get anything out
of it.

can anyone tell me how can i get all of the websites from the folder
called "Web Sites".

Tools:
IIS 5.1 on Microsoft Windows Server 2003
C#.net 2005

thanks,
Lucky

Oct 18 '06 #2
Hello,

There is no IIS 5.1 on Windows Server 2003, it is either IIS 6.0 on
Windows Server 2003 or IIS 5.1 on Windows XP.

Anyway, i think this code snippet works on both:

"C# - Enumerate websites"
http://www.gafvert.info/iis/article/...s_websites.htm

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Lucky wrote:
>hi guys,

few days back i've posted a question regarding how can i get the list
of the websites form the IIS, at this location:

http://groups.google.com/group/micro...372cde30df29e7

and i got a nice replay. it worked.

now the problem is different when i tried the code on the different
webserver which has lots of websites but not under the "Default Web
Site" directory. most of the Websites are under the "Web Sites" folder.
and now i want to retrive all those websites list from the IIS. i tried
to get the type of the folder "Web Sites", but i didnt get anything out
of it.

can anyone tell me how can i get all of the websites from the folder
called "Web Sites".

Tools:
IIS 5.1 on Microsoft Windows Server 2003
C#.net 2005

thanks,
Lucky
Oct 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: J P Singh | last post by:
Hi All I want to create a webpage which will list all the files in particular folder and hyperlink to them to allow users to view the grpahics online without having to send each file to them by...
4
by: tonyz.wrightz | last post by:
Hi, I have used the setup wizard to build an installer that installs my asp.net application. Problem is, at my current job, they have an alternative web folder at the root level (to clarify, at...
3
by: davidw | last post by:
Hi, I have my webdav code, I am using cookie to verify user, so user login to our website first, like http://site, then they can open link http://site/webfiles and check "open as web folder", in...
7
by: Brad | last post by:
When debugging my current web project, in VS2003, I found I had lost the ability to drill down on watch objects in the Watch Window; I could only view the single value specific watch objects. ...
2
by: Brent White | last post by:
I have IIS 6 on a Windows 2003 box running with FP 2002 Extensions, which are enabled. I am trying to open an existing website called CrystalASP, which has ASP files in it, but I'm trying to use...
13
by: Kobee | last post by:
Hi, I'm having a few issues adapting to new 2.0 "website" project vs. the old 1.1 "web application". One of the major issues I'm having is with the notion of namespaces. Using the old way, I...
0
by: newjazzharmony | last post by:
I'm working in Visual Studio 2003 and I'm trying to add a web project to a solution. When I right-click on the solution and select "Add Existing Project you want to add the project from:" that is...
2
by: Lucky | last post by:
hi guys, few days back i've posted a question regarding how can i get the list of the websites form the IIS, at this location: ...
0
by: =?Utf-8?B?VmlyZw==?= | last post by:
Hi, I have Windows XP, SP2, MS office 2003. MSDAIPP.DLL version: 11.0.5510.0. I am using Web Folder client for accessing Web Dav Server which is a opensource. Is this Web Folder client is...
4
by: imranisb | last post by:
Hi, I apologies if this message was posted before. I need to develop an application which connects to HTTPS website and show the contents (web folders) just like windows explorer, so i can...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.