islandsurvivalcraft/test-server/end-debug-server-process.ps1
Harrison 690abbdbe0 Changed script to show running window.
Also added various checks for terminating process.
2020-04-22 03:39:19 -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"
}