Is there a way to use the returning data of a command? For instance, how and where can I store the returning files of a  c:\>dir ?

Thank you