Command Prompt: How to Copy the Output of CMD || Redirect Output from the CMD to Text File

preview_player
Показать описание
Command Prompt: How to Copy the Output of CMD || Redirect Output from the CMD to Text File. Copy Command Prompt output to the Windows Clipboard

To save the command output to a text file with Command Prompt, use these steps:
1. Open Start.
2. Search for Command Prompt.
3. Right-click the top result and select the Run as administrator option.
4. Type the following command to save the output to a text file and press Enter: YOUR-COMMAND -- C:\PATH\TO\FOLDER\OUTPUT. txt.

Follow me on:
Рекомендации по теме
Комментарии
Автор

THANK YOU SO MUCH!!! I've literally been searching for hours to learn how to do this!!!

TheGarryFish
Автор

All pipe operators and switches attached to commands are very usefull. Good work.

maxmuster
Автор

I have no CMD, but a DosBox emulator and i like to make special batch files with some echo commands inside that have instuctions of a routine to redirect with some pipe operators(echo first instruction>test.txt and echo all next instructions>>test.txt) and to collect the routine into a new text file and to start and telecontrol debug with the text file of instructions and commands with the pipe operator(debug<test.txt>nul) to create&run a new executable file from the instructions converting the instructions into mashine code.

maxmuster
Автор

'dir' and some weird button that I can't see on comp then 'clip'

kevinsheldrick
Автор

Why not use ipconfig>test.txt to redirect the output directly into a text file?

maxmuster
visit shbcf.ru