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