Create an Application in a Web Directory

Creates a Web application in the W3SVC/2142295254/root/aspnet_client_folder directory.

VBScript Code


strComputer = "LocalHost"
Set objIIS = GetObject _
    ("IIS://" & strComputer & "/W3SVC/2142295254/root/aspnet_client_folder")

objIIS.AppCreate(False)