Advertisement
hiro1357

pkill.bat

Apr 27th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.13 KB | None | 0 0
  1. @echo off
  2.  
  3. if {%1} equ {-f} (
  4. for /f "tokens=2" %%i in ('tasklist ^|findstr %2') do taskkill /pid:%%i
  5. ) else (
  6. taskkill /im:%1
  7. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement