@echo off tasklist /nh > 1.txt sort < 1.txt pause I need to leave only the name and memory occupied by the processors so that the sorting is by name, and where is the same name by memory.
Source: https://ru.stackoverflow.com/questions/903594/
All Articles
cut -b -5,11- file.txtflying solves the problem - avpcutprints (like most commands) its result in stdout (and does not edit the file (I think it works the same in Windows)) Trytasklist | cut -b -25,63- | sort >pr.txttasklist | cut -b -25,63- | sort >pr.txttasklist | cut -b -25,63- | sort >pr.txt- avp