I know I can do 'wmic process list brief' to display a list of processes. Is there a way to view only the top 10 processes using the most memory?
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- CosmosDB emulator can't start since port is al
- How to print to stdout from Python script with .py
- Determine if an executable (or library) is 32 -or
Output example:
Over at DosTips I posted JSORT.BAT - a hybrid JScript/batch utility that can numerically sort stdin input, starting at a given line position, and write the result to stdout. The utility is pure script that will run on any Windows machine from XP onward.
I decided to extend JSORT.BAT to support two new options:
/S n
so you can skip (preserve) the header, and/C n
so you can get just the top n records.It then becomes very simple to work directly with the output of
wmic process list brief
. The only trick is I had to compute the line position of the WorkingSetSize column, as it varies depending on the longest length of the listed file names.Here is the JSORT.BAT code at the time this answer was written. Follow the JSORT.BAT link above for the most up-to-date version.