How to play audio file on windows from command line?

前端 未结 11 1003
臣服心动
臣服心动 2020-12-10 02:41

In Windows, is there a simple way (i.e. something you could type on a single command line) to just play a couple of .mp3 files and then exit on its own?

wmplayer, f

11条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 03:36

    You can probably write a small VBScript which will use the Windows Media Player ActiveX control to play an audio file. You should be able to terminate the process from that too, once playing finished.

    I'm looking around a bit and maybe can come up with a working solution. Might take a while, though.

提交回复
热议问题