>>>I realize that if I didn't mind creating my virtual directories under the default web site that WConnect is enough. But we would like a little more control. How do I automate creating a web site, and virtual directories underneath that web site.
>>>
>>>Also we're using a COM server and running on an NT box without a Logon. Is it possible to automate that process. I realize were probably talking about a number of API calls. Could you point us in the right direction?
>>
>>IIS 4 and 5 expose all of this functionality through it's Admin objects, which are reachable through ADSI. You can get some samples on how to do this in the ADSI IIS article on Rick's website. The article uses a COM control written in VB that wraps the ADSI functions, which is completely unnecessary. I think that Rick resorted to that after finding that VFP's CREATEOBJECT() function does not accept a moniker style string, but he didn't try GETOBJECT(), which does.
>>
>>IIS' Admin objects are completely documented in MSDN.
>
>After doing a fair amount of research, I still have some questions of ADSI:
>
>How do I set the name of the server?
>How do I set the home directory?
>How do I add a default doc to the list?
>
>CopyHere is excellent. I wish I had known about this before I would have saved myself a lot of time.
>
>TIA
Look at the documentation for wwWebServer and wwIISAdmin, which lets you do what you want. You'd have to pick your Web site first then call the various other functions with the ADSI path set to this Web site.
Easy as pie...