List available virtual web servers without using COM enumeration?
am 25.01.2008 07:11:54 von Dylan Nicholson
Hi, just wondering if there's any possible way of getting the list of
available virtual web servers without using COM enumeration (e.g. "for
each")?
It seems the Item() method usually available for accessing collections
doesn't work with either WMI or ADSI, and not even the Count property
works for ADSI.
I'm asking because I'm stuck with a scripting language that doesn't
support COM enumeration. I have a workaround, but if I can avoid it I
will.
TIA
Dylan
Re: List available virtual web servers without using COM enumeration?
am 26.01.2008 22:49:53 von Anthony Jones
"Dylan Nicholson" wrote in message
news:4a5d66ed-dc9d-431d-8938-031f51f9d15a@s13g2000prd.google groups.com...
> Hi, just wondering if there's any possible way of getting the list of
> available virtual web servers without using COM enumeration (e.g. "for
> each")?
>
> It seems the Item() method usually available for accessing collections
> doesn't work with either WMI or ADSI, and not even the Count property
> works for ADSI.
>
> I'm asking because I'm stuck with a scripting language that doesn't
> support COM enumeration. I have a workaround, but if I can avoid it I
> will.
>
What scripting language are you using? I don't know of a scripting language
that can consume COM based objects but not support a enumeration.
--
Anthony Jones - MVP ASP/ASP.NET
Re: List available virtual web servers without using COM enumeration?
am 27.01.2008 03:07:06 von paula
On Jan 27, 8:49=A0am, "Anthony Jones" wrote:
> "Dylan Nicholson" wrote in message
>
> news:4a5d66ed-dc9d-431d-8938-031f51f9d15a@s13g2000prd.google groups.com...
>
> > Hi, just wondering if there's any possible way of getting the list of
> > available virtual web servers without using COM enumeration (e.g. "for
> > each")?
>
> > It seems the Item() method usually available for accessing collections
> > doesn't work with either WMI or ADSI, and not even the Count property
> > works for ADSI.
>
> > I'm asking because I'm stuck with a scripting language that doesn't
> > support COM enumeration. =A0I have a workaround, but if I can avoid it I=
> > will.
>
> What scripting language are you using? =A0I don't know of a scripting lang=
uage
> that can consume COM based objects but not support a enumeration.
>
> --
> Anthony Jones - MVP ASP/ASP.NET
InstallShield - after over 10 versions their scripting language still
doesn't natively support "for each" or anything equivalent.
Fortunately they do support calling out to external DLL's, so I guess
that's my only solution.