@PID[filename[,+]] : Returns the PID for specified name (or 0 if no match). If you have multiple copies of the same executable running, @PID will return the first one it finds. The filename argument supports wildcards.

 

If you specify the optional second argument +, @PID will return all PID's that match the first argument.

 

@pid[firefox.*,+]

 

See also: @PPID, @PIDCOMMAND, @PIDUSER.

 

Example:

 

echo %@pid[tcc.exe]

22420

 

echo %@pid[firefox.exe,+]

11317 9466 12440