Skip to content

Instantly share code, notes, and snippets.

@LuanVSO
Last active January 6, 2024 21:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuanVSO/710db8eebd8f66449e2c3d2e9e143c82 to your computer and use it in GitHub Desktop.
Save LuanVSO/710db8eebd8f66449e2c3d2e9e143c82 to your computer and use it in GitHub Desktop.
generate m3u files for retroarch
#Requires -Version 7.2
cd "psx"
ls .\multi-disc\ -Directory | % {
((ls -LiteralPath $_ -Include *.chd | Resolve-Path -Relative) -replace "\\","/").substring(2) |
out-file -encoding utf8NoBOM -literalpath "$($_.BaseName).m3u"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment