Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
355 B

' Get the performance counter instance for the Windows Management process
set perfproc = GetObject("winmgmts://alanbos5/root/cimv2:win32_perfrawdata_perfproc_process.name='winmgmt'")
' Display the handle count in a loop
for I = 1 to 10000
Wscript.Echo perfproc.HandleCount
'Wscript.Sleep 2000
' Refresh the object
perfproc.Refresh_
next