I\'m trying to use tasklist to find out which process is consuming more than X percent of my CPU (to later kill it with taskkill.)
tasklist
taskkill
How do
Tasklist's CPUTime is a measure of how much CPU time (cycles) have been used since the start of the process, so to convert that to a percent, it would be
(TotalProcessRuntime / CpuTime) / 100
At least, thats what I gather :)