I\'m trying to redirect all output (stdout + stderr) of a DOS command to a single file:
C:\\>dir 1> a.txt 2> a.txt The process cannot access the fil
To add the stdout and stderr to the general logfile of a script:
dir >> a.txt 2>&1