[This is preliminary documentation and subject to change.]
You can use the AppGetStatus method of the IIsWebDirectory object to retrieve the current status of a Web application.
vReturn = object.AppGetStatus
APPSTATUS_STOPPED | The application is not running. |
APPSTATUS_RUNNING | The application is running |
APPSTATUS_NOTDEFINED | No application is defined at the specified path. |
Dim DirObj, vStatus Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir") ' Get the status of the application vReturn = DirObj.AppGetStatus
AppCreate | AppDelete | AppDeleteRecursive |
AppUnload | AppUnloadRecursive | AppDisable |
AppDisableRecursive | AppEnable | AppEnableRecursive |