CPU Usage Utility from Command Line

Discussion in 'Windows' started by hanleyhansen, Mar 28, 2012.

  1. hanleyhansen

    hanleyhansen New Member

    Joined:
    Jan 24, 2008
    Messages:
    336
    Likes Received:
    8
    Trophy Points:
    0
    Occupation:
    Drupal Developer/LAMP Developer
    Location:
    Clifton
    Home Page:
    http://www.hanseninfotech.com
    I am looking for a way to output CPU usage percentage via the command line. I ran across this: wmic cpu get loadpercentage which gives me the desired percentage output however I want to test the CPU usage while running a certain command. Anyone have any idea? I tried doing it in a batch file but then realized that at the point i run wmic cpu get loadpercentage the CPU usage is no longer portraying the usage of the previous command. Ideally what I am looking for is something like this:

    Code:
    C:\> command xyz [ftp file.blah]
    and then the file is uploaded correctly but the output is a percentage indicative of the CPU usage during the process. Not sure if I'm making myself clear. Hopefully something like this exists out there. Thanks in advance!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice