Starting a program minimized via Batch
Asked Answered
A

2

6

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.

Alburga answered 21/1, 2015 at 15:46 Comment(0)
D
6

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"
Dominy answered 21/1, 2015 at 15:58 Comment(2)
Sorry, it does not work. WMPlayer does not start minimized :(Alburga
Could you use Powershell and Start-Process WMPlayer.exe -ArgumentList "Song.MP3" -WindowStyle MinimizedNotarize
S
0

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
Synthesis answered 10/5, 2021 at 7:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.