Batch streams
From wikinotes
stream operators
REM replace file
echo "test" > C:/test.txt
REM append file
echo "test" >> C:/test.txt
REM redirect stdout/stderr
DIR SomeFile.txt 2>&1
REM replace file
echo "test" > C:/test.txt
REM append file
echo "test" >> C:/test.txt
REM redirect stdout/stderr
DIR SomeFile.txt 2>&1