Setting playback device by executing a batch file / powershell script

后端 未结 6 1328
太阳男子
太阳男子 2021-01-31 04:21

I\'ve got my computer(Windows 7) hooked up to the TV, and i very often change output device for sound between Digital Audio (S/PDIF)(High definition audio device) and my headset

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 05:20

    This is how I set 'Line 1' as the playback device:

    start /min "" G:\......\nircmd.exe setdefaultsounddevice "Line 1"
    

    NirCmd is a small command-line utility which you can download that allows you to do some useful tasks without displaying any user interface.

提交回复
热议问题