Last active
March 17, 2016 14:23
-
-
Save PrateekKumarSingh/aed9fefa33caa7449703 to your computer and use it in GitHub Desktop.
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
Function Start-RandomMusic($directory) | |
{ | |
Start-Process (gci $directory -Filter *.mp3 |Get-Random -Count 1).fullname -verb 'play' | |
} | |
Start-RandomMusic C:\Users\Prateek\downloads\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment