Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » VBScript » Custom script

Verify the Status of a Web Directory Application

You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.

Example(s)

strComputer = "LocalHost"
Set objIIS = GetObject _
    ("IIS://" & strComputer & "/W3SVC/2142295254/root/aspnet_client_folder")
strStatus = objIIS.AppGetStatus2
 
If strStatus = 2 Then
    Wscript.Echo "The application is running."
ElseIf strStatus = 3 Then
    Wscript.Echo "The application is stopped."
Else
    Wscript.Echo "The status of this application could not be determined."
End If