Done Priority additions

rps

Jul 6, 2008
437
6
PRIORITY - Add the ability to enter PRIORITY [PID].... or PRIORITY [System Process] to receive just info for the PID's or system process entered on the cmd line.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,558
97
Albuquerque, NM
prospero.unm.edu
I think the system process always has a "PID" of zero. So if PRIORITY supported the =pid syntax, you could use =0 to pick up the system process:

Code:
C:\>priority "take command*"
   1528  Normal    chrome            Take Command - Google Chrome

C:\>priority =1528
   1528  Normal    chrome            Take Command - Google Chrome

C:\>priority =0
      0  Unknown   [System Process]

C:\>
 
May 20, 2008
11,783
118
Syracuse, NY, USA
I think the system process always has a "PID" of zero. So if PRIORITY supported the =pid syntax, you could use =0 to pick up the system process:

You can already get priority by PID and (no surprise) it fails for PIDs 0 and 4.
Code:
v:\> echo %@priority[0]
0

v:\> echo %@priority[4]
0