473,383 Members | 1,925 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,383 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 5958
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

0
by: asj | last post by:
from the borg lady: http://www.freeroller.net/page/Sayaka/20030819#walmart_deadline_shows_java_cashing ------------------------------------------------- I/We read with interest Walmart's new...
0
by: Archana | last post by:
I am looking for a web based drawing control but have had no luck findin one. I want something that is similar to Visio where there is a palette o objects that get dragged to a drawing surface or...
8
by: Doug Laidlaw | last post by:
I tried to grab an image from a Web page the other day. It turned out that the page was made up of three horizontal bands, and part of the image was in each. One band was a JPEG, another was a...
1
by: Alex Maghen | last post by:
I'm not sure if the question belongs in one of the Visual Studio boards or here but it's like this In Visual Studio.NET, if I want to create a Web Application, I seem to have to create it UNDER...
0
by: NotGiven | last post by:
I want to add some shopping pages to my site. I'd lilke to use the easiest things possible, thought I am a PHP developer. What's the easiest way to add a "web store" using Amazon web services or...
0
by: kplkumar | last post by:
Hi I am new to this. I am trying to create a setup project to package our stuff and create an installer. This is what I want to do, I have a directory sructure in which we have our...
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...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.