473,399 Members | 4,254 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,399 software developers and data experts.

Check if a virtual directory exists in IIS ??

Hi: Is ther a way to check at runtime if a certain virtual directory
already exists on a certain machine? Thanks in advance. PS: I use C#,
VS 2003, .NET Framework 1.1, W2003.
Nov 16 '05 #1
3 5079
Yes, check
Using System.DirectoryServices to Configure IIS in msdn.
The same can be done using the System.Management classes.

Willy.

"Gogutz" <go*******@hotmail.com> wrote in message
news:2d**************************@posting.google.c om...
Hi: Is ther a way to check at runtime if a certain virtual directory
already exists on a certain machine? Thanks in advance. PS: I use C#,
VS 2003, .NET Framework 1.1, W2003.

Nov 16 '05 #2
Thanks Willy,

I will try it!

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message news:<Ob**************@tk2msftngp13.phx.gbl>...
Yes, check
Using System.DirectoryServices to Configure IIS in msdn.
The same can be done using the System.Management classes.

Willy.

"Gogutz" <go*******@hotmail.com> wrote in message
news:2d**************************@posting.google.c om...
Hi: Is ther a way to check at runtime if a certain virtual directory
already exists on a certain machine? Thanks in advance. PS: I use C#,
VS 2003, .NET Framework 1.1, W2003.

Nov 16 '05 #3
Hi Willy,

Your suggestion (DirectoryServices) worked fine on w2003 ... But I
need the same thing on a w2000 server (on which it crashed ...).

I am still searching for a solution in the System.Management classes
.... but so far so ... bad. Thanks in advance!

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message news:<Ob**************@tk2msftngp13.phx.gbl>...
Yes, check
Using System.DirectoryServices to Configure IIS in msdn.
The same can be done using the System.Management classes.

Willy.

"Gogutz" <go*******@hotmail.com> wrote in message
news:2d**************************@posting.google.c om...
Hi: Is ther a way to check at runtime if a certain virtual directory
already exists on a certain machine? Thanks in advance. PS: I use C#,
VS 2003, .NET Framework 1.1, W2003.

Nov 16 '05 #4

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

Similar topics

4
by: Keith Chadwick | last post by:
I have 3 individual ASP.NET applications that make up the overall web application. Each of these websites share some common styles, scripts and xslt files. These are all placed in a single...
2
by: Jacky Luk | last post by:
Hi all, If I need to make a C# application, do I need to set up a virtual dir such as inetroot on the Harddisks. How do I set up such thingy? Thanks Jack
0
by: Lasse Nilsson | last post by:
Hi all, I've got a deployment issue I hope is solvable at all, and appreciate all help anyone can give me. We've got an ASP.NET-application (a sort of function library shared by our customers,...
1
by: Pgar | last post by:
I have a page that I have the users uploading files from their local machines. I take these files strip off their path and redirect it to a new file on the web server. I have a virtual directory...
2
by: Rose winsle | last post by:
Hi guys ... I just wanted to create virtual directory using VB.net . i can manage that ... when i create the virtual directory how can i set anonymous access off. following is my code...
1
by: sudhapadmas | last post by:
Hello netters, I was trying to create a virtual directory in IIS using the following code: System.EnterpriseServices.Internal.IISVirtualRoot vr = new...
1
by: rogersmithiii | last post by:
We have a production web site - www.thesite.com - laid out as follows on IIS 6: d:\Inetpub\wwwroot\default.asp There are lots of subdirectories inside of WWWROOT including a cgi-bin directory...
0
by: clinnebur | last post by:
We have an ASP.NET web application (C#) that copies videos from a CCTV truck to a Linux server. What I am trying to do is convert the .AVI videos(which is how they are created on the truck) to .WMV...
5
by: chris_peoples | last post by:
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/ virtual-dir points to another directory on another server using the unc path: \\server-b\main-dir I have a file at...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.