Skip to content

Instantly share code, notes, and snippets.

@Amoenus
Last active February 11, 2019 12:32
Show Gist options
  • Save Amoenus/342413de26caaec5bb1e14d3881d3cee to your computer and use it in GitHub Desktop.
Save Amoenus/342413de26caaec5bb1e14d3881d3cee to your computer and use it in GitHub Desktop.
@ECHO OFF
PowerShell.exe -Command "get-process | where { $_.Name -like '*notepad*' } | foreach { $_.Kill() }"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment