Retrieve home dir iis 5
am 03.09.2007 15:44:02 von Alessandro
hi everybody,
I'm trying to write a script having output like:
www.sitename.tld
this doesn't work:
set sito= GetObject("IIS://localhost/w3svc/" & site.id & "/ROOT" )
for each cosa in sito
WScript.Echo( "Vdir " + cosa.Name)& ( " - Path " + cosa.Path)
suggestion?
Re: Retrieve home dir iis 5
am 03.09.2007 20:05:35 von Kristofer Gafvert
What is www.sitename.tld? Is it the binding(s) for the website? The name
that is shown in IIS Manager (ServerComment metabase property)?
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Alessandro wrote:
>hi everybody,
>
>I'm trying to write a script having output like:
>
>www.sitename.tld
>
>this doesn't work:
>set sito= GetObject("IIS://localhost/w3svc/" & site.id & "/ROOT" )
>
>for each cosa in sito
> WScript.Echo( "Vdir " + cosa.Name)& ( " - Path " + cosa.Path)
>
>
>suggestion?
Re: Retrieve home dir iis 5
am 04.09.2007 11:52:06 von Alessandro
It's ok Path is a property of "sito" in my example.....
thank you for your time.
ciao
"Kristofer Gafvert" wrote:
> What is www.sitename.tld? Is it the binding(s) for the website? The name
> that is shown in IIS Manager (ServerComment metabase property)?
>
>
> --
> Regards,
> Kristofer Gafvert
> http://www.gafvert.info/iis/ - IIS Related Info
>
>
> Alessandro wrote:
>
> >hi everybody,
> >
> >I'm trying to write a script having output like:
> >
> >www.sitename.tld
> >
> >this doesn't work:
> >set sito= GetObject("IIS://localhost/w3svc/" & site.id & "/ROOT" )
> >
> >for each cosa in sito
> > WScript.Echo( "Vdir " + cosa.Name)& ( " - Path " + cosa.Path)
> >
> >
> >suggestion?
>
Re: Retrieve home dir iis 5
am 04.09.2007 16:54:13 von Kristofer Gafvert
I don't understand.
What is not working?
You want to have an output like:
www.sitename.tld
Your example code does not match this output at all, hence I am asking,
what is www.sitename.tld? I understand what is, and i
know how to retrieve this value from the metabase. But i don't understand
what www.sitename.tld is, hence i don't know what value you want to
retrieve from the metabase.
To be able to help you with example code, i must know what you want to
accomplish. The description you have given so far is not clear.
Or if you have a specific error message you want to ask about, please post
the exact error message. "Doesn't work" does not give us any value. We
don't know what is wrong, nor do we know what you expect to happen, we
just know that something is not working as you expect it to work.
Please clarify.
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Alessandro wrote:
>It's ok Path is a property of "sito" in my example.....
>thank you for your time.
>
>ciao
>
>"Kristofer Gafvert" wrote:
>
>>What is www.sitename.tld? Is it the binding(s) for the website? The name
>>that is shown in IIS Manager (ServerComment metabase property)?
>>
>>
>>--
>>Regards,
>>Kristofer Gafvert
>>http://www.gafvert.info/iis/ - IIS Related Info
>>
>>
>>Alessandro wrote:
>>
>>>hi everybody,
>>>
>>>I'm trying to write a script having output like:
>>>
>>>www.sitename.tld
>>>
>>>this doesn't work:
>>>set sito= GetObject("IIS://localhost/w3svc/" & site.id & "/ROOT" )
>>>
>>>for each cosa in sito
>>> WScript.Echo( "Vdir " + cosa.Name)& ( " - Path " + cosa.Path)
>>>
>>>
>>>suggestion?
>>