I've been trying to get this code to work right, but I am failing with every tweak. I need this code to open all the MP3 in the specified directory and then play the files one by one.
Here's the code:
set /p music=Enter location of playlist:
cd %music%
for %%M in (*.mp3) do start "C:\Program Files (x86)\Windows Media Player" /wait "%%M"
The problem is that this opens all the MP3 files in the directory (at once but because of Windows Media Player queue system they open in one process) and it keeps opening them until it reaches the last file and then starts playing the last file. Because the batch process has ended of course and it's not in a loop.