Tim Meddick
unread,Jan 31, 2012, 5:47:34 AM1/31/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I very rarely pose questions in any newsgroup - I just attempt to answer
ones I know that I am capable of. . .
However, having always believed that it's important to know the limits of
one's own levels of knowledge, I don't think anything's wrong in asking a
question, when you have to. . .
...And the thing is ; having a list in the form of comma-separated-values,
how would one use batch-file programming to re-arrange the list into order
of size of [a] value (one of the value-fields) ? Preferably, and / or /
also removing all other fields but the first (name) and just the one
numerical value (Mem Usage).
The list is the output generated by the TASKLIST.EXE utility as included in
the XP OS and a sample list is reproduced here (I have included the
Column-Headings here but will be absent in a working instance of the list)
;
"Image Name","PID","Session Name","Session#","Mem Usage"
"System Idle Process","0","Console","0","16 K"
"System","4","Console","0","32 K"
"SMSS.EXE","572","Console","0","44 K"
"CSRSS.EXE","636","Console","0","2,436 K"
"WINLOGON.EXE","660","Console","0","3,700 K"
"SERVICES.EXE","704","Console","0","2,424 K"
"LSASS.EXE","716","Console","0","1,560 K"
"svchost.exe","876","Console","0","1,636 K"
"svchost.exe","1000","Console","0","1,696 K"
"MsMpEng.exe","1092","Console","0","16,152 K"
"RapportMgmtService.exe","1128","Console","0","35,520 K"
"svchost.exe","1268","Console","0","15,672 K"
"SPOOLSV.EXE","1504","Console","0","1,552 K"
"GoogleCrashHandler.exe","176","Console","0","756 K"
"jqs.exe","260","Console","0","1,404 K"
"TIMESERV.EXE","416","Console","0","436 K"
"ALG.EXE","2888","Console","0","600 K"
"RapportService.exe","3932","Console","0","20,176 K"
"CTFMON.EXE","588","Console","0","2,216 K"
. . . I would be grateful for any assistance anyone can provide me with,
and thanks, in advance of any such help.
==
Cheers, Tim Meddick, Peckham, London. :-)