Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Monitor the Activity Level of a ProcessContent of Monitor the Activity Level of a Process.vbsMD5 Hash: 75A5E50612E6DF5960AB26E409DB1611 |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") For i = 1 to 11 Set colProcesses = objWMIService.ExecQuery _ ("Select * from Win32_Process Where Name = 'Notepad.exe'") For Each objProcess in colProcesses sngProcessTime = (CSng(objProcess.KernelModeTime) + _ CSng(objProcess.UserModeTime)) / 10000000 Wscript.Echo objProcess.Name, sngProcessTime Next Wscript.Sleep 30000 Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |