1.

Solve : Background Music?

Answer»

Hi Guys

I Am Making An "Command PROMPT" Project On Maruti Suzuki Cars

I Needed A Batch File to play a song silently without showing up any Music Player

can It be possible ??

My song is in B:\Project_MSC\redemptation.mp3Im not sure that you can do this -- exactly, see http://msdn.microsoft.com/en-us/library/dd562624(VS.85).aspx

One option might be to embed a media player component in an html page and open the page with the browser minimised


to play a song silently 
Well, you can run a music player minimized.

Start "" /min MPLAY32 /play /close "C:\Documents and Settings\user\My Documents\filename.mp3"

Just use that (change the path to SUIT your needs).I Appreciate helpmeh but any example of music player which can b ran silently during the show Quote from: The Italian Stallion on August 10, 2010, 10:25:59 AM

I Appreciate helpmeh but any example of music player which can b ran silently during the show

I think silence and playing music are sort of conflicting requirements here. Quote from: The Italian Stallion on August 10, 2010, 10:25:59 AM
I Appreciate helpmeh but any example of music player which can b ran silently during the show
Code: [Select]SET wshShell=wscript.CreateObject("WScript.Shell")
wshshell.run "MPLAY32 /play /close PATHTOMP3\file.mp3", 0i made this program that does that(with special thanks to helpmeh for the vbs script)

music.exe C:\test.mp3

[recovering DISK space - old attachment deleted by admin]First: Why do people insist on compiling batch files?


Original batch for "music.exe":
Code: [Select]echo off
echo Set wshShell=Wscript.CreateObject("WScript.Shell")>temp.vbs
echo wshshell.run "MPLAY32 /play /close "%1"",0>>temp.vbs
cscript //nologo temp.vbs
del temp.vbs

Second: MPLAY32 is the windows 95 media player. It can be found on Windows XP,Windows 2000, 98, 95, and ME.

Now, let's look at The_Mad_Joker's OS:

"Windows 7".

Now, allow me to tell you, that mplay32 is not present on Vista or 7. therefore that solution will not work.

third: it doesn't solve the problem anyway, since the windows is simply minimized.

Quote from: BC_Programmer on August 10, 2010, 05:43:40 PM
First: Why do people insist on compiling batch files?


Original batch for "music.exe":
Code: [Select]echo off
echo Set wshShell=Wscript.CreateObject("WScript.Shell")>temp.vbs
echo wshshell.run "MPLAY32 /play /close "%1"",0>>temp.vbs
cscript //nologo temp.vbs
del temp.vbs

Second: MPLAY32 is the windows 95 media player. It can be found on Windows XP,Windows 2000, 98, 95, and ME.

Now, let's look at The_Mad_Joker's OS:

"Windows 7".

Now, allow me to tell you, that mplay32 is not present on Vista or 7. therefore that solution will not work.

third: it doesn't solve the problem anyway, since the windows is simply minimized.



#1 Insecurities?
#2 Mplay2 then?
#2.5 Not again...why does he return?
#3 No...

Also, the quotes need to be escaped somehow, because Wscript is expecting an end of statement at L:2 C:37 (when run straight from VBS).i complied it so it would be hidden so there is less confusion IE no popupsOr use JUST a vbs file, that way there is no need to compile anything, nor are there any popups.Batch file too doesnt give any pop ups, and yes that music.exe is not workingIs there a preferred option? Quote from: The Italian Stallion on August 11, 2010, 12:36:05 AM
Batch file too doesnt give any pop ups, and yes that music.exe is not working
Ok, then just use the batch file. Quote
Ok, then just use the batch file.
Okies thank u all 4 your help


Discussion

No Comment Found