0
Answer

Determining I/O Read Write bytes of a process

j_nibas

j_nibas

20y
2.1k
1
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