Advertisement
hl2guide

Playlist Creator 1.0A - PowerShell

Jan 6th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Playlist Creator
  2. # Creates a playlist from audio files in a directory
  3. # Version: 1.0A
  4.  
  5. $sourceFolder = 'E:\Music Collection\Westworld\Westworld(FLAC)\'
  6. $targetfile = 'playlist.m3u'
  7.  
  8. # End edits
  9.  
  10. Set-Location $sourceFolder
  11. Get-ChildItem *.* -include *.flac,*.ogg,*.mp3,*.m4a -name | Out-File -Encoding UTF8 $sourceFolder$targetfile
  12. Write-Host 'Created Playlist for the folder:'$sourceFolder -ForegroundColor Green
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement