Just drag and drop the directory full of music files to this icon, and up comes Windows Media Player and plays the whole album, or even your entire music file collection! Files can be anywhere on your system or network; any directory tree depth. You can use this with some other players as well.
REM Change code page to list names that contain accented characters CHCP 1252 set target=%1 If NOT "%1"=="" goto run set target="d:\program files\mpeg\tunes" :run dir %target%\*.mp* /s/o/b > c:\temp\tmp.m3u dir %target%\*.wav /s/o/b >> c:\temp\tmp.m3u dir %target%\*.wma /s/o/b >> c:\temp\tmp.m3u dir %target%\*.ra /s/o/b >> c:\temp\tmp.m3u dir %target%\*.mid /s/o/b >> c:\temp\tmp.m3u start "c:\Program Files\Windows Media Player\wmplayer" c:\temp\tmp.m3u rem pause echo off cls
For more about W98 and other MS windows batch files, see my ISP web pages. (click here)
@echo off :: change code page to list names that contain accented characters CHCP 1252 if %1""=="" goto message if not exist c:\temp mkdir c:\temp if exist c:\temp\tmp.m3u del c:\temp\tmp.m3u if ERRORLEVEL 1 goto running dir %1\*.wav /s/o/b > c:\temp\tmp.m3u dir %1\*.mp3 /s/o/b >> c:\temp\tmp.m3u dir %1\*.wma /s/o/b >> c:\temp\tmp.m3u dir %1\*.ra /s/o/b >> c:\temp\tmp.m3u dir %1\*.mid /s/o/b >> c:\temp\tmp.m3u c: cd c:\program files\windows media player :: mplayer 6 :: start mplayer2.exe c:\temp\tmp.m3u :: mplayer 7 start wmplayer.exe c:\temp\tmp.m3u exit :message echo ------------------------------------------- echo **No target files. Drag and drop on icon.** echo ------------------------------------------- pause exit :running echo ------------------------------------------------ echo **Please close existing mplayer and try again.** echo ------------------------------------------------ pause exit