Cool trick. If you'd rather redirect an output in DOS to a file instead of your screen, type the following:

QUOTE
DIR /S /B c:\ABC > "c:\windows\desktop\contents"


In this example, the contents of the directory ABC are piped to a text file contents.txt

Credits go to .net for this tip.