Re: How can a virtual root be defined programmatically?

From: Peter Steele (psteele_at_z-force.com)
Date: 11/11/04


Date: Thu, 11 Nov 2004 09:33:13 -0800

I decided to write the code. Pretty simple in C#...

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:32358567-DF02-4CC1-A525-D824F5281CB3@microsoft.com...
> Are you saying you want to open metabse.xml with a text editor and add the
> entry? You could do that.
>
> If you want to automate it, than ADSI or WMI is the way to go. You would
> call those objects in your code.
>
> "Peter Steele" wrote:
>
>> Is there any reason we couldn't update metabase.xml explicitly and add
>> the
>> virtual dir manually? I realize this probably isn't a recommended way but
>> in
>> our case the addition of this virtual root will happen once and never be
>> changed, and it happens during configuration of our web server. We could
>> create the root with IIS of course but we want to automate the process.
>>
>> "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
>> news:B11B5CF1-D780-46AB-B8ED-338632BAD9C8@microsoft.com...
>> > "Peter Steele" wrote:
>> >> We have an application that requires us to define a virtual root in
>> >> IIS
>> >> programmatically rather than through the IIS manager. How can this be
>> >> done?
>> >
>> > You would use ADSI or WMI:
>> > http://www.iisfaq.com/Default.aspx?tabid=2537
>>
>>
>>



Relevant Pages

  • Re: How can a virtual root be defined programmatically?
    ... Are you saying you want to open metabse.xml with a text editor and add the ... If you want to automate it, than ADSI or WMI is the way to go. ... > our case the addition of this virtual root will happen once and never be ...
    (microsoft.public.inetserver.iis)
  • Re: Loop through date range, but skip down to next year
    ... are you saying it doesn't do this on your system? ... What version of Excel are you using and what operating system version are you running it on? ... My originally posted code did that, but you told me it gave you too much information and you had me modify it to retrieve the data for just the dates you have listed in Column A. I'm not sure how you would want to automate this. ... I see these as mutually exclusive situations; or do you have some method of proceeding in mind that would permit both scenarios to apply? ...
    (microsoft.public.excel.programming)
  • Re: Open and Run File
    ... Are you saying you want to simultaneously ... display the contents of an m file and run it with one command. ... I am trying to automate some administrative task. ...
    (comp.soft-sys.matlab)
  • Re: Opening RC file in text mode
    ... select Source Code Editor, ... Automate your software builds with Visual Build Pro ... I never want to open them with the resource editor since it doesn't ...
    (microsoft.public.vc.ide_general)
  • importing .bas
    ... I have a .BAS file with a macro module that I can manually import into the ... Normal project in VB Editor. ... I'd like to automate this process. ...
    (microsoft.public.word.vba.general)