Last active
February 16, 2018 14:27
-
-
Save renkin/5adeffda559bb63f366167601f033903 to your computer and use it in GitHub Desktop.
Powershell command for playing an alam sound from the console to e.g. be apended to a command pipe to know when it's ready
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
# Simple | |
powershell -c '(New-Object Media.SoundPlayer "C:\Windows\Media\alarm01.wav").PlaySync();' | |
# As alias: | |
alias play_sound='powershell -c "(New-Object Media.SoundPlayer \"C:\Windows\Media\alarm01.wav\").PlaySync();"' | |
play_sound |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also altrive/ToastNotification_Windows10.ps1