Check Windows Process
January 11, 2010
>>Script Language and Platform: VBScript
cscript MonitorTask.vbs "distrib.exe" "2" "c:\taskmonitor.log" "MyServer"
"distrib.exe" = ProcessName
"2" = Number of Instances that we are looking for
"c:\taskmonitor.log"= Log File Location
Result: Type "c:\taskmonitor.log" you will see the following results
: ServerName =MyServer: ProcessName =distrib.exe : Number of given instances to monitor is =2 : Number of running instance 2: Date=11/16/2004 9:06:50 AM : ServerName =MyServer: ProcessName =notepad.exe : Number of given instances to monitor is =2 : Number of running instance 0: Date=11/16/2004 9:07:17 AM
Disclaimer: We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
"as -is", without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose...
Back to Database Journal Home