Advertisement
Combreal

killUserProcess.bat

Jun 3rd, 2020
1,695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.21 KB | None | 0 0
  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. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement