My prototype batch file goes like this:
Code: Select all
start "" "Song 1.mp3"
pause
start "" "Song 2.mp3"
pause
start "" "Song 3.mp3"
pause
Originally, I had it as start [song] & pause, but that did the same thing.
What am I missing?
Moderator: DosItHelp
Code: Select all
start "" "Song 1.mp3"
pause
start "" "Song 2.mp3"
pause
start "" "Song 3.mp3"
pause
Code: Select all
start "" /wait "Song 1.mp3"
start "" /wait "Song 2.mp3"
start "" /wait "Song 3.mp3"
Code: Select all
"Song 1.mp3"
"Song 2.mp3"
"Song 3.mp3"
Code: Select all
'"Song 1.mp3"' is not recognized as an internal or external command, operable program or batch file.
Code: Select all
start "" /wait "C:\path\to\IrfanView.exe" "C:\path\to\Song 1.mp3"
...
...
Code: Select all
@echo off
setlocal
set "musicpath=c:\music\"
set "pListpath=%muspath%myplist.m3u"
set "prg=c:\program files\irfanview\plugins\iv_player.exe"
pushd "%musicpath%"
>"%pListpath%" (For /F "tokens=*" %%s In ('dir /b "*.mp3"') Do echo %%s)
start "" "%prg%" "%pListpath%"
popd
endlocal & exit /b