Board index » Web Programming » IIS, ADSI - Create virtual/application folder inside existing physical folder
|
ScotttheDog
|
IIS, ADSI - Create virtual/application folder inside existing physical folder
Web Programming428
Hi I use ADSI from vbs script to create virtual application folders etc. Works well. But one question: GetObject("IIS://localhost/W3SVC/1/Root/myMainFolder") will work if "myMainFolder" is a virtual directory or a physical folder in the root WITH a Application Folder created on it. Then GetObject("IIS://localhost/W3SVC/1/Root/myMainFolder") Fails when "myMainFolder" is a just a physical folder in the root (Seems the GetObject throw exception no -2147024893 without a description) I need to create application folders inside a physical folder in the root with "myMainFolder" as a physical folder in the root, like: root/myMainFolder/DotNetApp1/ root/myMainFolder/DotNetApp2/ root/myMainFolder/DotNetApp3/ etc where the "DotNetApp1" is an application folder. Any help would be appreciated. gert - |
