关于IIS, 这里有点介绍, 也许有点用.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/htm/HowtoExtendtheADSISchema.asp
以下是依照上面的介绍做了一个小测试(VBA)
---------------------------------------------------------
'Create a virtual directory In IIS
Sub doCreate()
CreateVH "Hello", "C:/World"
End Sub
Sub CreateVH(sV, sD As String)
Set IIsWebVDirRootObj = VBA.GetObject("IIS://LocalHost/W3SVC/1/Root")
Set IIsWebVDirObj = IIsWebVDirRootObj.Create("IIsWebVirtualDir", sV)
IIsWebVDirObj.Put "Path", sD
IIsWebVDirObj.Put "AccessRead", True
IIsWebVDirObj.Put "AccessScript", True
'IIsWebVDirObj.AppCreate2 1
'IIsWebVDirObj.Put "AppFriendlyName", "NewApp"
IIsWebVDirObj.SetInfo
End Sub