Change Audio Playback Device & Change Active Window in cmd

  1. Trisuniel's Avatar
    Posts : 23
    MS Windows 10 Home 64-bit
       #1

    Change Audio Playback Device & Change Active Window in cmd


    Basically what the title says. I need to be able to:
    1. Change the audio playback device to a specific device.
    2. Change the active window.

    Both need to be able to be done in cmd. How would I be able to do that?
      My Computer


  2. Posts : 5
    win 8.1
       #2
      My Computer

  3. Trisuniel's Avatar
    Posts : 23
    MS Windows 10 Home 64-bit
    Thread Starter
       #3

    Doesn't seem to be working. Doing anything wrong?
    I'm typing this in cmd:
    "C:\Program Files\nircmd-x64\nircmdc" setdefaultsounddevice "SONY TV *00-C" 1
    "C:\Program Files\nircmd-x64\nircmdc" setdefaultsounddevice "SONY TV *00-C" 2

    And it doesn't change anything.

    EDIT: Nevermind The device was actually: ""SONY TV *00-C". 2 spaces between TV and *. Anyway thanks for helping with that. Now I just need a way to be able to change the active window in cmd.
      My Computer

  4. Ztruker's Avatar
    Posts : 13,524
    Windows 10 Pro X64 20H4 19042.928
       #4

    Sounds like something Powershell can probably do. There are several really good Powershell programmers on this site, hopefully they will see this and respond.

    The Set-WindowFocus cmdlet for Windows PowerShell

      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:57.
Find Us




Windows 10 Forums