Showing posts with label Multimedia with Powershell. Show all posts
Showing posts with label Multimedia with Powershell. Show all posts

Friday, August 29, 2014

#24 : How to play music from Powershell Script?


While doing something, I thought to add some alerting music. Just to notify that script has completed execution. Just for fun and in effort to do everything in Powershell, I wrote the below :

$sound.SoundLocation="c:\WINDOWS\Media\notify.wav"
$sound.Play()
$sound.Stop()

You may use this script when you have to check something related with Sound-Card or it may be useful to give some interactive help. You may run any of the WAV file with this.

Hope you liked this article.

#112: How to handle xml document in Powershell?

 In PowerShell, you can handle XML data using various cmdlets and methods provided by the .NET Framework. Here's a basic guide on how to...