Cpu usage under dos

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
karzer
Posts: 21
Joined: 17 Jul 2010 02:56

Cpu usage under dos

#1 Post by karzer » 01 Sep 2010 04:38

Hi,
How dos can see the cpu usage? Cpu usage with taskmgr.exe in the interface looks, but I need to see under dos, so I can write the script.

thank you

jeb
Expert
Posts: 1055
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: Cpu usage under dos

#2 Post by jeb » 01 Sep 2010 07:24

Not the way like taskMgr.exe shows it, but you can use it too.

Code: Select all

tasklist /v


shows the usage in cpu-time, so to get the percental value, you have to call it periodically.

Post Reply