@echo off echo ---------------------------------- echo Create .m3u files from .chd files echo Created by: Phyrex Techs echo ---------------------------------- timeout /t 2>nul REM Delete all .m3u files in current directory before running to avoid duplicates @echo *** Deleting all .m3u files in current directory before running to avoid duplicates *** @echo on for /R %%I in (*.m3u) do for %%J in ("%%~dpI.") do DEL /F "%%~dpI%%~nxI" @echo off @echo. @echo *** Creating .m3u files *** REM For each .chd file in a sub folder create a .m3u file (name based on the folder name) then add text to the .m3u that points to .chd files. @echo on for /R %%I in (*.chd) do for %%J in ("%%~dpI.") do echo %%~nxJ/%%~nxI>>"%%~dpJ%%~nxJ.m3u" @echo off echo. echo *** Complete *** REM Pause until key is pressed. timeout -1 exit