Created
December 4, 2018 17:13
-
-
Save Nattefrost/d7de04e0aa0dc5d99fed343d32481af3 to your computer and use it in GitHub Desktop.
killing a process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# call with : | |
# powershell.exe -file .\kill_process.ps1 'Dwarf Fortress' | |
param( | |
[string]$p_name = "" | |
) | |
$procid=get-process "$p_name" | select -expand id | |
Stop-Process -id $procid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment