How to play audio file on windows from command line?

前端 未结 11 996
臣服心动
臣服心动 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:12

    Old question, new answer - you could use PowerShell:

    powershell -c (New-Object Media.SoundPlayer 'c:\PathTo\YourSound.wav').PlaySync();
    

提交回复
热议问题