This relates to my thread Pass the PID from tasklist into taskkill to kill a process by the .dlls it's holding open.
I am trying to do something like what was discussed in that thread:
FOR /F "usebackq tokens=2 skip=2" %i IN (`tasklist |findstr /r "[0-9].exe") DO taskkill /PID %i
The above command does not run. I want to get all processes which are like
123456.exe and kill them. What am I doing wrong?