Script to add VirtDir

Script to add VirtDir

am 16.04.2008 13:53:41 von yogi

Hi,
as a first job in IIS area I'm looking for VB/VBS to do following:
addVD abcd www.kuku.org/Hi www.kuku.org/HelloWorld.html

www.kuku.org/Hi redirected to URL www.kuku.org/HelloWorld.html
add to website of abcd a Virtual directory that redirected to following URL.

Thanks
Yogev

Re: Script to add VirtDir

am 17.04.2008 03:50:21 von David Wang

On Apr 16, 4:53=A0am, Yogi wrote:
> Hi,
> =A0 as a first job in IIS area I'm looking for VB/VBS to do following:
> =A0 =A0 =A0addVD abcdwww.kuku.org/Hiwww.kuku.org/HelloWorld.html
>
> www.kuku.org/Hi=A0redirected to URLwww.kuku.org/HelloWorld.html
> add to website of abcd a Virtual directory that redirected to following UR=
L.
>
> Thanks
> Yogev


General script code on how to write VBS to administer IIS:
http://www.microsoft.com/technet/scriptcenter/scripts/defaul t.mspx?mfr=3Dtru=
e

Read the IIS Metabase documentation to determine which property to
change:
http://www.microsoft.com/technet/prodtechnol/WindowsServer20 03/Library/IIS/c=
de669f1-5714-4159-af95-f334251c8cbd.mspx?mfr=3Dtrue

IIS Administration tools which can create a virtual directory (amongst
many other things):
http://msdn2.microsoft.com/en-us/library/ms525006(vs.85).asp x

It's about 5 lines of code to do what you want, and the knowledge is
sprinkled in the URLs I just mentioned.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//