I'm trying to run the following command in a *FOR /F in Windows' shell …
wmic process where ParentProcessId=%%PID%% get ProcessId
The = between ParentProcessId and %PID% keeps getting replaced by a space.
The result being:
for /F "usebackq" %b in (wmic process where ParentProcessId %PID% get ProcessId) do (.
How would I escape the = character?