ProcessInfo

(Host,ProcessName,NumInstances)

Description Counts the number of instances of a process on a computer. The name of the process should not include the extension, i.e. .exe.
Arguments
[in] HostThe host which will be queried.
[in] ProcessNameThe name of the process. Do not include the extension. If "" is specified then the return is the total process count.
[out] NumInstancesThe number of processes found on the host that have a matching name.
Return Value Zero indicates success, any other value indicates failure.
Example See {installation directory}\Checks\VBScript\CheckService.vbs See {installation directory}\Checks\VBScript\ProcessCount.vbs

Copyright (c) Warren Flemmer 2006www.net-probe.com