Redirect Windows command line output to a text file – Knowligent
Redirect Windows command line output to a text file

Redirect Windows command line output to a text file

HomeHow to, TechRedirect Windows command line output to a text file

Avoid scrolling and/or save the generated output

How to redirect Cmd output to a text file

One of the most useful ways to record and troubleshoot the behavior of commands or batch tasks you run on Windows is to redirect the output to a file.

There are, however, a few different ways you can redirect command line writes to a file. The option you choose depends on how you want to view your command output.

When you type a command in the Windows console (Command Prompt), the output of that command goes into two separate streams.