Friday, October 4, 2013

Get amount of memory used by process in a batch file

Using WMIC (Windows Management Instrumentation command-line):

wmic process where name='firefox.exe' get WorkingSetSize

Same, excluding header and empty lines:

wmic process where name='firefox.exe' get WorkingSetSize | findstr /r "^[1-9][0-9]*"

No comments:

Post a Comment