A. In another FAQ (How can I redirect the output from a command to a file?), we saw how to redirect a command's output to a file using a single right angle bracket (>). However this method replaces the file's existing content with the command's output.
To append the command's output to a file, you use double right angle brackets (>>). For example,
C:\> dir d:\temp\*.* >> dirlist.txt
results in the output being appended to file dirlist.txt.