G
George Hester
I have an ActiveX Visual Basic dll which I can use to create a virtual directory under the Default Server with the permissions I want. Here it is:
Sub createDirectory(ByVal name As String)
Dim iisAdminObj
Dim iisDirObj
'Access IIsWebServer object for Development
Set iisAdminObj = GetObject("IIS://localhost/W3SVC/1/ROOT")
'Create Virtual Directory
Set iisDirObj = iisAdminObj.Create("IISWebVirtualDir", name)
iisAdminObj.SetInfo
'Set Virtual Directoy's name an access
iisDirObj.Put "Path", "C:\Inetpub\" & name
iisDirObj.Put "AccessRead", True
iisDirObj.Put "AccessScript", True
iisDirObj.SetInfo
'Create inproc application
iisDirObj.AppCreate True
iisDirObj.SetInfo
'Set inproc's process isolation and name
iisDirObj.Put "AppIsolated", 1
iisDirObj.Put "AppFriendlyName", name
iisDirObj.Put "AuthAnonymous", False
iisDirObj.Put "AuthNTLM", True
iisDirObj.SetInfo
End Sub
The Basic is inherited so that is why it is not in here. I call this dll in a ASP located in the Administrtaor Web.
What I would like to do is include the code which will transform this virtual directory into a FrontPage 2000 Server Extened Virtual Directory. Any ideas how this can be accomplished here or a link to a place at Microsoft that adreeses this? Thanks.
Sub createDirectory(ByVal name As String)
Dim iisAdminObj
Dim iisDirObj
'Access IIsWebServer object for Development
Set iisAdminObj = GetObject("IIS://localhost/W3SVC/1/ROOT")
'Create Virtual Directory
Set iisDirObj = iisAdminObj.Create("IISWebVirtualDir", name)
iisAdminObj.SetInfo
'Set Virtual Directoy's name an access
iisDirObj.Put "Path", "C:\Inetpub\" & name
iisDirObj.Put "AccessRead", True
iisDirObj.Put "AccessScript", True
iisDirObj.SetInfo
'Create inproc application
iisDirObj.AppCreate True
iisDirObj.SetInfo
'Set inproc's process isolation and name
iisDirObj.Put "AppIsolated", 1
iisDirObj.Put "AppFriendlyName", name
iisDirObj.Put "AuthAnonymous", False
iisDirObj.Put "AuthNTLM", True
iisDirObj.SetInfo
End Sub
The Basic is inherited so that is why it is not in here. I call this dll in a ASP located in the Administrtaor Web.
What I would like to do is include the code which will transform this virtual directory into a FrontPage 2000 Server Extened Virtual Directory. Any ideas how this can be accomplished here or a link to a place at Microsoft that adreeses this? Thanks.