3

I want to list all processes and it's cpu usage, Can the "tasklist" command acheive?enter image description here

I want to list Image Name,PID,and CPUUsage througn cmd command like this, but it has no cpu usage

enter image description here

elsonwx
  • 1,431
  • 3
  • 16
  • 26
  • What do you want, exactly? Please [edit] to clarify. – Nathan Tuggy Aug 25 '15 at 04:23
  • Possible duplicate of [How to convert a tasklist's CPU time to CPU % usage?](https://stackoverflow.com/questions/206805/how-to-convert-a-tasklists-cpu-time-to-cpu-usage) – TylerH Oct 03 '18 at 16:06

1 Answers1

2

use tasklist /v.

You may want to set mode 240 before, or redirect output to a file:

tasklist /v >tasklist.txt

(sorry, tasklist does not support selection of which properties to show; only "standard" view or "verbose" view)

Stephan
  • 53,940
  • 10
  • 58
  • 91
  • How to convert cpu time to cpu usage?I want to get the cpu usage,it's better be percentage – elsonwx Aug 25 '15 at 06:53
  • 1
    CPU usage is a momentary value. You might catch it in the very millisecond where it peaks to 99% or another millisecond, where it's idle (0%). It doesn't tell you anything about CPU load, because you don't know if it's 99% at 90% of the overall time or 0,001%. – Stephan Aug 25 '15 at 07:06
  • I just want to know the cpu usage at the moment I run,just like the first picture I posted – elsonwx Aug 25 '15 at 07:32
  • @elsonwx related https://stackoverflow.com/questions/206805/how-to-convert-a-tasklists-cpu-time-to-cpu-usage – TylerH Oct 03 '18 at 16:06
  • Then there's this https://stackoverflow.com/questions/55720901/how-can-i-get-the-cpu-usage-of-a-process-with-tasklist-in-windows – Cardinal System Apr 27 '19 at 01:19