Sorry, a little late
Redirecting the output of a command
Almost all commands send output to your screen. Even commands that send output to a drive or printer also display messages and prompts on your screen.
To redirect the output from the screen to a file or printer, use the greater-than sign (>). You can use the greater-than sign with most Windows 2000 commands. For example, in the following command, the directory listing produced by the dir command is redirected to the Dirlist.txt file:
dir > dirlist.txt
If the Dirlist.txt file doesn't exist, Windows 2000 creates it. If Dirlist.txt exists, Windows 2000 replaces the information in the file with the output from the dir command.
To add the output from a command to the end of a file without losing any of the information already in the file, use a double greater-than sign (>>). For example, in the following command, the directory listing produced by the dir command is appended to the Dirlist.txt file:
dir >> dirlist.txt