I think you need to do:
adsutil.vbs CREATE w3svc/1/root/myVdir "IIsWebVirtualDir"
adsutil.vbs SET w3svc/1/root/myVdir/path c:\path
The first line creates the virtual directory, and the second line sets the
path value (you can then set other values if you want)
Cheers
Ken
"Håvard Olerud Eriksen" <hereriks.RemoveThis@PANTSyahoo.com> wrote in message
news:2jakh5Fv632sU1@uni-berlin.de...
: How do I go about creating a new virtual directory (or website) using
: command line options? I'm trying to make an installscript that can be used
: both for IIS 5 and 6. What I need to do is to set up the new virtual
virtual
: directory, point it to the directory the user chooses during install and
: then set up the proper parameters for scripts and executables as well as
: users. (The web app also uses an ISAPI web service extension). I've been
: fiddling around with the adsutil.vbs script but I can't get it to do what
I
: want. Every time i try to run:
: "adsutil.vbs create w3svc/1/root/NameOfApp "C:\path" it gives me: Error
: creating the object ErrNumber: -2147463153 (0x800500F).
:
: MMTIA,
: Håvard
:
:
>> Stay informed about: New virtual directory using command line