I’d like to easily save the log of the Windows command prompt into a file. Is there any alternative to select everything and right-click on copy?
You can redirect the output of a cmd prompt to a file using
>> to append to a file.
echo Hello World >C:\output.txt echo Hello again! >>C:\output.txt
Note that using
> will automatically overwrite the file if it already exists.
You also have the option of redirecting stdin, stdout and stderr.
See here for a complete list of options.
Answered By – Bali C