j_nibas

j_nibas

  • NA
  • 1
  • 0

Determining I/O Read Write bytes of a process

Sep 24 2004 2:14 AM
Hi all, I want to kill some processes running on my system, on the basis of their being idle. I have this piece of code which finds and kill the process. But I want to kill the process which does not have any change in I/O read/write bytes () [ReadTransferCount property in VB] over a period of time. I appreciate any help Process[] procList = Process.GetProcessesByName("WINWORD"); foreach(Process p in procList) { Console.WriteLine(p.ProcessName); p.Kill(); } Thanks in advance Jagat