PhyrexTechs

m3u Creator

Sep 14th, 2023 (edited)
2,334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.84 KB | Gaming | 0 0
  1. @echo off
  2. echo ----------------------------------
  3. echo Create .m3u files from .chd files
  4. echo Created by: Phyrex Techs          
  5. echo ----------------------------------
  6.  
  7. timeout /t 2>nul
  8.  
  9.  
  10. REM Delete all .m3u files in current directory before running to avoid duplicates
  11. @echo *** Deleting all .m3u files in current directory before running to avoid duplicates ***
  12. @echo on
  13. for /R %%I in (*.m3u) do for %%J in ("%%~dpI.") do DEL /F "%%~dpI%%~nxI"
  14. @echo off
  15.  
  16. @echo.
  17. @echo *** Creating .m3u files ***
  18. 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.
  19. @echo on
  20. for /R %%I in (*.chd) do for %%J in ("%%~dpI.") do echo %%~nxJ/%%~nxI>>"%%~dpJ%%~nxJ.m3u"
  21. @echo off
  22.  
  23. echo.
  24. echo *** Complete ***
  25.  
  26. REM Pause until key is pressed.
  27. timeout -1
  28.  
  29. exit
Tags: Emulation
Advertisement
Add Comment
Please, Sign In to add comment