Jump to content

how can i play Mp3 During Batch File


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites


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...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...