Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Priority additions

Jul
441
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
 
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

%@PRIORITY[4] actually works for me, provided TCC is elevated. (No, I don't know why this would be useful.)
 
Back
Top