Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting a program minimized via Batch

I have been searching around on a way to do this, but the /min command does not start my MP3 file minimized.

Here is the code:

start /min song1.mp3 "cd /d %~dp0"

The program I'm using to play the MP3 is Windows Media Player.

like image 936
YoloJoe Avatar asked Jan 21 '15 15:01

YoloJoe


1 Answers

You cannot start the media player minimized when letting play a music track.

But you can start Windows Media Player minimized:

start /min wmplayer.exe

Here you can see command line parameters for wmplayer.exe:

Command Line Parameters for Wmplayer

If you want to play a music track use that instead:

start wmplayer.exe "C:\Path\To\Music\track.mp3"
like image 131
xdevs23 Avatar answered Sep 29 '22 07:09

xdevs23