Play music file using Batch?

本秂侑毒 提交于 2020-03-06 02:41:11

问题


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:


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



来源:https://stackoverflow.com/questions/27476035/play-music-file-using-batch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!