spigot-plugin-template/test-server/end_process.ps1
2020-04-24 15:44:12 -05:00

9 lines
199 B
PowerShell

if (Test-Path ./pid.temp) {
$sID = Get-Item -Path ./pid.temp | Get-Content -Tail 1
if (Get-Process -Id $sID -ErrorAction SilentlyContinue) {
Stop-Process -Id $sID
}
Remove-Item "./pid.temp"
}