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

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