

InterviewSolution
Saved Bookmarks
1. |
Solve : Background Music? |
Answer» <html><body><p>Hi Guys <br/><br/>I Am Making An "Command <a href="https://interviewquestions.tuteehub.com/tag/prompt-592976" style="font-weight:bold;" target="_blank" title="Click to know more about PROMPT">PROMPT</a>" Project On Maruti Suzuki Cars<br/><br/>I Needed A Batch File to play a song silently without showing up any Music Player<br/><br/>can It be possible ?? <br/><br/>My song is in B:\Project_MSC\redemptation.mp3Im not sure that you can do this -- exactly, see <a href="https://msdn.microsoft.com/en-us/library/dd562624(VS.85).aspx">http://msdn.microsoft.com/en-us/library/dd562624(VS.85).aspx</a><br/><br/>One option might be to embed a media player component in an html page and open the page with the browser minimised<br/><br/><br/>to play a song silently <br/>Well, you can run a music player minimized.<br/><br/>Start "" /min MPLAY32 /play /close "C:\Documents and Settings\user\My Documents\filename.mp3"<br/><br/>Just use that (change the path to <a href="https://interviewquestions.tuteehub.com/tag/suit-1233889" style="font-weight:bold;" target="_blank" title="Click to know more about SUIT">SUIT</a> 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</p><blockquote>I Appreciate helpmeh but any example of music player which can b ran silently during the show<br/></blockquote> <br/>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<blockquote>I Appreciate helpmeh but any example of music player which can b ran silently during the show<br/></blockquote> Code: <a>[Select]</a><a href="https://interviewquestions.tuteehub.com/tag/set-11758" style="font-weight:bold;" target="_blank" title="Click to know more about SET">SET</a> wshShell=wscript.CreateObject("WScript.Shell")<br/>wshshell.run "MPLAY32 /play /close PATHTOMP3\file.mp3", 0i made this program that does that(with special thanks to helpmeh for the vbs script)<br/><br/>music.exe C:\test.mp3<br/><br/>[recovering <a href="https://interviewquestions.tuteehub.com/tag/disk-244471" style="font-weight:bold;" target="_blank" title="Click to know more about DISK">DISK</a> space - old attachment deleted by admin]First: Why do people insist on compiling batch files?<br/><br/><br/>Original batch for "music.exe":<br/> Code: <a>[Select]</a>echo off<br/>echo Set wshShell=Wscript.CreateObject("WScript.Shell")>temp.vbs<br/>echo wshshell.run "MPLAY32 /play /close "%1"",0>>temp.vbs<br/>cscript //nologo temp.vbs<br/>del temp.vbs<br/><br/>Second: MPLAY32 is the windows 95 media player. It can be found on Windows XP,Windows 2000, 98, 95, and ME.<br/><br/>Now, let's look at The_Mad_Joker's OS:<br/><br/>"Windows 7".<br/><br/>Now, allow me to tell you, that mplay32 is not present on Vista or 7. therefore that solution will not work.<br/><br/>third: it doesn't solve the problem anyway, since the windows is simply minimized.<br/><br/> Quote from: BC_Programmer on August 10, 2010, 05:43:40 PM<blockquote>First: Why do people insist on compiling batch files?<br/><br/><br/>Original batch for "music.exe":<br/> Code: <a>[Select]</a>echo off<br/>echo Set wshShell=Wscript.CreateObject("WScript.Shell")>temp.vbs<br/>echo wshshell.run "MPLAY32 /play /close "%1"",0>>temp.vbs<br/>cscript //nologo temp.vbs<br/>del temp.vbs<br/><br/>Second: MPLAY32 is the windows 95 media player. It can be found on Windows XP,Windows 2000, 98, 95, and ME.<br/><br/>Now, let's look at The_Mad_Joker's OS:<br/><br/>"Windows 7".<br/><br/>Now, allow me to tell you, that mplay32 is not present on Vista or 7. therefore that solution will not work.<br/><br/>third: it doesn't solve the problem anyway, since the windows is simply minimized.<br/><br/><br/></blockquote> <br/>#1 Insecurities?<br/>#2 Mplay2 then?<br/>#2.5 Not again...why does he return?<br/>#3 No...<br/><br/>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 <a href="https://interviewquestions.tuteehub.com/tag/ie-496825" style="font-weight:bold;" target="_blank" title="Click to know more about IE">IE</a> 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<blockquote>Batch file too doesnt give any pop ups, and yes that music.exe is not working<br/></blockquote> Ok, then just use the batch file. Quote<blockquote>Ok, then just use the batch file.</blockquote> Okies thank u all 4 your help<br/></body></html> | |