Save Contents of Command Prompt to Text File

Command Prompt is a feature of Windows that provides an entry point for typing MS‑DOS (Microsoft Disk Operating System) commands and other computer commands.

To get a command prompt, click the Start button, click All Programs, click Accessories, and then click Command Prompt. To view a list of common commands, type help, and then press ENTER. To view more information about each of these commands, type help‌ command name and then press ENTER.

To save the content of the Command Prompt Window to a text file, add > name.txt after the command and then press ENTER.