Help With JukeBox
Posted: 19 Sep 2011 20:48
I an trying to create something like a JukeBox where the user is able to select from a list of tracks and it plays. I would also love if the track could repeat over and over until the user wants it to stop.
I have the .wav files which i have named each ones by numbers(1-9) in a folder called JukeBox which also contains the batch file also calle JukeBox on my desktop.
I am running windows 7 and when i try to run the little piece of code I have it says "mplay32.exe", "wmplayer32.exe" or the word "play" is not recognised.
Can someone please help...pretty please?
This is the little i have so far.
I have the .wav files which i have named each ones by numbers(1-9) in a folder called JukeBox which also contains the batch file also calle JukeBox on my desktop.
I am running windows 7 and when i try to run the little piece of code I have it says "mplay32.exe", "wmplayer32.exe" or the word "play" is not recognised.
Can someone please help...pretty please?
This is the little i have so far.
Code: Select all
@echo off
:start
cls
echo.
echo WELCOME To JUKEBOX WORLD
echo ----------------------------
echo.
echo Select 1-9 for the track you wish to play
echo.
set "choice="
set /p choice=Please enter your prefered track:
rem %choice%.wav
echo.
start %choice%.wav
Play sound
mplay32.exe/play/close/JukeBox\%choice%.wav
echo.
pause
type %choice%.wav | more
pause
goto :start
pause