答案 0 :(得分:1)
您可以使用TaskKill
执行此操作taskkill /F /IM processname.exe /T
答案 1 :(得分:1)
对于条件操作,您可以使用powershell;
if(Get-Process -Name ProcessName)
{
"Process is running. So ending the process"
Get-Process -Name ProcessName | Stop-Process -Force
}
Else
{
"Process is not running"
}