Proces zabijania CMD przez PID
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
PBlaster
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
1
2
3
4
> wmic process where "caption = 'java.exe' and commandline like '%server-1.properties%'" get processid
ProcessId
6016
> taskkill /pid 6016 /f
taskkill /PID 1234
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
taskkill /F /PID pid_number
> wmic process where "caption = 'java.exe' and commandline like '%server-1.properties%'" get processid
ProcessId
6016
> taskkill /pid 6016 /f