I want to grep the PID of the last running process on Windows. I am executing a command in the background.
How to get the PID of these commands?
Perhaps by tracking them.
, tasklist (. tasklist /?), PID, . ( tasklist FOR /F, . FOR /? .)
tasklist
tasklist /?
FOR /F
FOR /?
, , , PID (, FIND /V, . FIND /? ), PID. , , , .
FIND /V
FIND /?
wmic pid. , , .