Starting a program minimized via Batch

YoloJoe picture YoloJoe · Jan 21, 2015 · Viewed 11k times · Source

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.

Answer

xdevs23 picture xdevs23 · Jan 21, 2015

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"