Play music file using Batch?

2019-06-08 20:36发布

I am very confused as to how one would go about this. I want to use Batch to start an .mp3 file and while typing start file.mp3 plays the file, it opens the Media Player to do so. How would I play a music file in the background, but also have the ability to stop it whenever I please?

1条回答
神经病院院长
2楼-- · 2019-06-08 21:32

Windows Media Player with all its bells and whistles is not suitable for noninteractive listening. Use older version instead, which opens just a small window with a few necessary controls, plays the file and exits:

Mplay32.exe /Play /Close "file.mp3"

You may find more inspiration at http://vitsoft.info/skimid3.htm#TalkingPlayer

查看更多
登录 后发表回答