Done Priority additions

rps

Jul 6, 2008
440
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.
 
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:\>
 
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