Skip to content

Instantly share code, notes, and snippets.

@renkin
Last active February 16, 2018 14:27
Show Gist options
  • Save renkin/5adeffda559bb63f366167601f033903 to your computer and use it in GitHub Desktop.
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
# 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
@renkin
Copy link
Author

renkin commented Feb 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment