Advertisement
GibStorm

Sound output device switcher scripts

Mar 28th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REM Needed to work:
  2. REM Get nircmdc.exe here: http://www.nirsoft.net/utils/nircmd.zip
  3. REM Unzip it and put the file in the '.\utils' folder (level below the script files).
  4.  
  5. REM ###############################################################################################
  6.  
  7. REM ####### Script file start: headset.cmd
  8. REM --------- Switch sound output to headset -------------------------------------
  9. REM Name of headset output device in Windows 'Playback devices' must be 'Headset'
  10. REM ------------------------------------------------------------------------------
  11. @ECHO OFF
  12.  
  13. REM SET HEADSET AS DEFAULT MULTIMEDIA DEVICE
  14. .\utils\nircmdc setdefaultsounddevice "Headset" 1
  15.  
  16. REM SET HEADSET AS DEFAULT COMMUNICATIONS DEVICE
  17. .\utils\nircmdc setdefaultsounddevice "Headset" 2
  18. REM ####### Script file end: headset.cmd
  19.  
  20. REM ###############################################################################################
  21.  
  22. REM ####### Script file start: speakers.cmd
  23. REM --Switch sound output to speakers but keep headset default for comm ----------
  24. REM Name of speaker output device in Windows 'Playback devices' must be 'Speakers'
  25. REM ------------------------------------------------------------------------------
  26. @ECHO OFF
  27.  
  28. REM SET SPEAKERS AS DEFAULT MULTIMEDIA DEVICE
  29. .\utils\nircmdc setdefaultsounddevice "Speakers" 1
  30.  
  31. REM SET HEADSET AS DEFAULT COMMUNICATIONS DEVICE
  32. .\utils\nircmdc setdefaultsounddevice "Headset" 2
  33. REM ####### Script file end: speakers.cmd
  34.  
  35. REM ###############################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement