YoloJoe
YoloJoe

Reputation: 305

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.

Upvotes: 6

Views: 14947

Answers (2)

Miyagen Co Ltd
Miyagen Co Ltd

Reputation: 13

You can use VLC player

  1. Open Tools -> Preferences
  2. Click on All settings (left bottom)
  3. Interface
  4. Main Interface
  5. Select Qt interface from the Interface Module Drop-down (right side)
  6. Now on the left-hand page, expand Main Interface
  7. Click Qt
  8. Check Start VLC with only a system tray icon

Upvotes: 0

xdevs23
xdevs23

Reputation: 4014

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"

Upvotes: 6

Related Questions