How to send cmd output results to text file?


  1. Posts : 6,970
    22H2 64 Bit Pro
       #1

    How to send cmd output results to text file?


    What do I need to add here to get the results sent to a text file on desktop?

    How to send cmd output results to text file?-administrator_-c__windows_system32_cmd.exe-1.jpg

    Reason: Missing device in AIMP preferences:

    How to send cmd output results to text file?-options.jpg

    Windows 10 1903

    REF: GitHub - dechamps/FlexASIO: A flexible universal ASIO driver that uses the PortAudio sound I/O library. Supports WASAPI (shared and exclusive), KS, DirectSound and MME.

    Device list program

    FlexASIO includes a program that can be used to get the list of all the audio devices that PortAudio (and therefore FlexASIO) knows about, as well as detailed information about each device.
    The program is called PortAudioDevices.exe and can be found in the x64 (64-bit) or x86 (32-bit) subfolder in the FlexASIO installation folder. It is a console program that should be run from the command line. It doesn't matter much which one you use.
      My Computer


  2. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
       #2

    It looks like you changed to the C:\Program Files\FlexASIO\x64 directory so:

    Enter PortAudioDevices.exe > %userprofile%\Desktop\output.txt to send normal output to output.txt on your Desktop

    Enter PortAudioDevices.exe 2>&1> %userprofile%\Desktop\output.txt to send normal and error output to output.txt on your Desktop
      My Computers


  3. Posts : 1,680
    X
       #3

    Callender said:
    What do I need to add here to get the results sent to a text file on desktop?
    Does this program produce any output when you run it from the command line? (You only showed the application window in your screenshot.)
      My Computer


  4. Posts : 6,970
    22H2 64 Bit Pro
    Thread Starter
       #4

    margrave55 said:
    Does this program produce any output when you run it from the command line? (You only showed the application window in your screenshot.)
    Yes it does:

    How to send cmd output results to text file?-output.jpg

    Ztruker said:
    It looks like you changed to the C:\Program Files\FlexASIO\x64 directory so:

    Enter PortAudioDevices.exe > %userprofile%\Desktop\output.txt to send normal output to output.txt on your Desktop

    Enter PortAudioDevices.exe 2>&1> %userprofile%\Desktop\output.txt to send normal and error output to output.txt on your Desktop
    Thanks. That is exactly what I needed. All fixed now. (There were a couple of disabled devices that needed re-enabling)
      My Computer


  5. Posts : 14,050
    Windows 11 Pro X64 22H2 22621.1848
       #5

    You're welcome.
      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 22:21.
Find Us




Windows 10 Forums