rem redirect just stdout to prog.log javac.exe *.java > prog.log rem redirect just stdout to prog.log, appending rather than erasing prog.log first javac.exe *.java >> prog.log rem redirect both stdout and stderr to err.log javac.exe *.java >& err.log rem redirect stdout to prog.log javac.exe *.java 1> prog.log rem redirect stderr to err.log javac.exe *.java 2> err.log rem redirect stdout to prog.log and stderr to err.log javac.exe *.java 1> prog.log 2> err.log