Skip to content

Instantly share code, notes, and snippets.

@mlabrum
Created July 24, 2010 07:49
Show Gist options
  • Save mlabrum/488503 to your computer and use it in GitHub Desktop.
Save mlabrum/488503 to your computer and use it in GitHub Desktop.
# quick powershell script to find songs added in the last 20days and add them into winamp
cd "c:/music/folder"
foreach( $song in Get-Childitem –recurse | where-object {$_.lastwritetime –gt (Get-date).AddDays(-20) -and $_.extension -eq ".mp3"}){
&'C:/Program Files (x86)/Winamp/winamp.exe' $song.fullname
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment