Combreal

killUserProcess.bat

Jun 3rd, 2020
1,496
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem kill all instances of Mattermost.exe for user smainguy
  2. @echo off
  3. for /F "tokens=2 USEBACKQ" %%F IN (`tasklist /fi "USERNAME eq smainguy" ^| find "Mattermost.exe"`) DO (
  4.     taskkill /PID %%F /F >nul: 2>nul:
  5. )
RAW Paste Data