You can use the AppGetStatus method of the IIsWebDirectory object to retrieve the current status of a Web application.
vReturn = IIsWebDirectory.AppGetStatus
APPSTATUS_NOTDEFINED | No application is defined at the specified path. |
APPSTATUS_RUNNING | The application is running. |
APPSTATUS_STOPPED | The application is not running. |
<% 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
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/inet/iis/iis/htm/sdk/aoii0x0z.htm, 2KB, , updated: 2002/5/22 16:36, local time: 2025/5/15 03:42,
52.14.165.32:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.massmind.org/techref/inet/iis/iis/htm/sdk/aoii0x0z.htm"> AppGetStatus</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to www.massmind.org! |
.