Windows: command prompt output redirect to file

Self-tutoring about Windows: the tutor mentions how to direct command prompt output to a file.

In my experience, just entering the command, then >> outfile.txt will send the output to outfile.txt. For instance,

dir >> outfile.txt

will send the output of the dir command to the file outfile.txt.

I think > will wipe the output file clean and write the current command’s output on top; >> will append the command’s output to whatever is already in the file.

Source:

windowscentral.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply