title: Pass PIDs from tasklist and kill processes with tasklist
body: <p>I am trying to get windows processes matching some certain criteria, e.g. they are like "123456.exe" and trying to kill them with tasklist. I am trying to do it like that:</p>
  
  <pre><code>FOR /F "usebackq tokens=2 skip=2" %i IN (`tasklist |findstr /r "[0-9].exe") DO taskkill /PID %i
  </code></pre>
  
  <p>which is not right and I don't know why.... Can anyone give me a hint? 
  Thanx in advance!</p>