how to force kill a process cmd code example

Example 1: 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

Example 2: kill process in win by pid

kill process by pid