MSFN Forum: how can i play Mp3 During Batch File - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how can i play Mp3 During Batch File Rate Topic: -----

#1 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 16 November 2004 - 02:17 PM

Hi guys. I would like to play an MP3 While my batch file is running, i want run it by
mplayer2.exe i try this batch but it may be had errors

can any one help me

CLS
ECHO.
ECHO Listen to Quran While Install Applications
ECHO Please wait...
run "%systemdrive%\Program Files\Windows Media Player\mplayer2.exe" "%systemdrive%\drivers\002_cre\Ketaab_Allah.mp3"




for more explain

http://www.msfn.org/board/index.php?showto...=0&#entry221369


#2 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 16 November 2004 - 03:44 PM

up

#3 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 16 November 2004 - 04:14 PM

down? give it a min man.. u only posted 45mins ago..

start "%programfiles%\Windows Media Player\mplayer2.exe" "%systemdrive\Drivers\002_cre\ketaab_allah.mp3"


#4 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 16 November 2004 - 08:47 PM

hi what do you mean about
down? give it a min man.. u only posted 45mins ago

and i tried this code and it work ok but i found a new problem

when batch file runing it run program mplayer2.exe and run MP3 its ok
but after that the batch file stop and cant't continue it still run tthis mp3 and stop
how can i run mp3 and continue install all applications

#5 User is offline   aresgodofwar 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 300
  • Joined: 09-December 03

Posted 16 November 2004 - 09:03 PM

muslim, on Nov 16 2004, 09:47 PM, said:

hi what do you mean about
down? give it a min man.. u only posted 45mins ago

he means that not everyone will know the answer to your question.
be patient and give it some time.

#6 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 16 November 2004 - 09:09 PM

muslim, on Nov 16 2004, 07:47 PM, said:

when batch file runing it run program mplayer2.exe and run MP3 its ok
but after that the batch file stop and cant't continue it still run tthis mp3 and stop
how can i run mp3 and continue install all applications

call it from another batch file....

example...


Install.cmd:
CLS
ECHO.
ECHO Listen to Quran While Install Applications
ECHO Please wait...
start music.cmd


then in music.cmd:
start "%programfiles%\Windows Media Player\mplayer2.exe" "%systemdrive\Drivers\002_cre\ketaab_allah.mp3"
(maybe an "exit" here so that when it starts the music it closes the Dos prompt for music.cmd)


that should tell it to play and move on to installing stuff.

#7 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 17 November 2004 - 05:03 PM

i do it but also stop

in install file are

CLS
ECHO.
ECHO Listen to Quran While Install Applications
ECHO Please Listen
%systemdrive%\drivers\000_con\001_HSF\info.cmd

and in quran file

"%systemdrive%\Program Files\Windows Media Player\mplayer2.exe" %systemdrive%\install\Ketaab_Allah.mp3
CLs
EXIT

if you find any errors tell me

#8 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 17 November 2004 - 09:32 PM

up

#9 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 17 November 2004 - 10:02 PM

dude, its ONLY been 4 hrs, stop bumping your post :realmad:

what are you wanting 2 do?
u wanna install programs & have a batch file play music while its installing?

mplayer2.exe "file.mp3"
start /wait programuwant2install.exe /switch


nothing 2 it..

#10 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 17 November 2004 - 10:07 PM

ok where the path of mp3 and the path of mplayer2.exe

#11 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 17 November 2004 - 10:15 PM

i dont know where your mp3 is located, u put the path lol

#12 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 18 November 2004 - 07:07 AM

the path of mediaplay2

"%systemdrive%\Program Files\Windows Media Player\mplayer2.exe"


the path of mp3

%systemdrive%\install\Ketaab_Allah.mp3

tell me how

#13 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 18 November 2004 - 03:47 PM

Muslim, I made an Application to do just this, since it doesn't look like Mplayer2.exe can do this.

i'm just waiting for a couple replys on my VB6 question post. so far it seems to work perfect. and if enough people show intrest in it maybe a future release.. right now my program only supports 1 MP3 file.


Posted Image
the dos command prompt is just there to show that while it plays music it will install stuff too. but well.. in the form of Ping, Netstat, Ipconfig executing.

#14 User is offline   muslim 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 03-April 04

Posted 18 November 2004 - 05:17 PM

are any member have any way

#15 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 19 November 2004 - 12:22 AM

muslim, on Nov 18 2004, 04:17 PM, said:

are any member have any way

i've tried every command line option i could think of and everytime it starts playing the music and stops until the media player is closed. so i don't think there is a possible way besides maybe VBScript to do this which i'm not familiar with.

so once i release my program it should help you since it allows the installation to keep going.

i've also done about 2 hours of research into this.. and i haven't been able to find any command line options that will allow the music to play then move on to the installation.

so just wait a day or two till i find out which Files i need to pack with my program for it to work on everyones computers.

#16 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 19 November 2004 - 07:27 AM

I've released my Unattended Audio Player...

http://www.msfn.org/...showtopic=32654

#17 User is offline   selyb 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 21-November 04

Posted 21 November 2004 - 11:56 PM

let me get this right...
you want your own custom install program to start another process (media player) but not wait on it and then kill that process when the install is done, right?

start mypath\myapp /myargs
use this to start the process without having to kill it to continue the batch

taskkill /f myapp.exe
use this to stop the app when the batch is finished

#18 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 22 November 2004 - 03:56 AM

he wants audio to play in the background while his unattended CD installs stuff. and trying the /start \pathtoplayer\player.exe /myargs doesn't work as it waits for the media player to close. even calling it from a seperate batch file i couldn't find a way to allow the player to play the Mp3 and still install in the background.

#19 User is offline   selyb 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 21-November 04

Posted 22 November 2004 - 10:13 AM

freaky...
i wonder why that doesnt work when it does work inside windows...
a vbs should be able to do it...

Option Explicit
Dim oShell
Set oShell = CreateObject("WScript.Shell")
oShell.Run "myapp /myargs", 0, False

0 is for hidden, 2 is for minimized but not hidden
False tells it not to wait for the process to finish before continuing the script

then again... i dont know if a vbs will run... probably not...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy