Windows Quick Guide

 
 
This guide contains useful Windows commands.







Dos redirections.



Information
Several redirections examples.

command Description
command > nul Supress all output
command > file.txt Write standard output of command to file.txt
command 2> file.txt Write standard error of command to file.txt
command > file.txt 2>&1 Write both standard output and standard error of command to file.txt
command >> file.txt Append standard output of command to file.txt
command 2>> file.txt Append standard error of command to file.txt
command >> file.txt 2>&1 Append both standard output and standard error of command to file.txt
command < file.txt Command gets standard input from file.txt
command 2>&1 Command standard error is redirected to standard output
command 1>&2 Command standard output is redirected to standard error