ProcessCount

ProcessCount [/F] [/EV-] <var> <process>

Returns the count of running processes.

Parameters

varName of the variable that will receive the value.
processProcess name. May contain variables and environment variables.

Switches

/EV-Disables the use of environment variables in the text.
/FThe search is performed using the full name of the process. The search is case-insensitive.

Related

ProcessExist