Shell/Bash: taskkill Example

By

Shell/Bash Example: This is the "taskkill" Example. compiled from many sources on the internet by SimpleTutorials.org

taskkill in cmd

taskkill /f /im notepad.exe /t
taskkill /f /im chrome.exe /t

Taskkill

## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID  /F

taskkill cmd

taskkill /f /im Process_name.exe

cmd taskkill

@echo off

:: ganti browser.exe dengan nama target yang mau di kill
:: buka taskmanager pilih -> details -> kemudian ambil namanya
:: jika ingin multiple taskkill process tambahkan hal yang sama seperti fungsi sebelumnya dibawahnya

taskkill /FI "PID gt 1000" /FI "IMAGENAME eq browser.exe" /F /T
cls
taskkill /FI "PID gt 1000" /FI "IMAGENAME eq code.exe" /F /T
cls
taskkill /FI "PID gt 1000" /FI "IMAGENAME eq spotify.exe" /F /T
cls
taskkill /FI "PID gt 1000" /FI "IMAGENAME eq chrome.exe" /F /T
cls

exit


* Summary: This "taskkill" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others