Save Contents of Command Prompt to Text File



codemann8
07-10-2005, 01:27 AM
I was wondering how to automatically save the results and contents of a
command prompt session to a standard text file for later viewing using a
certain command.

Ramesh, MS-MVP
07-10-2005, 01:27 AM
Use the redirect operator
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/at.mspx

Example:
dir C:\ > c:\dirlist.txt

--
Ramesh, MS-MVP
Windows Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com

Windows XP Newsgroup Setup Instructions for Outlook Express:
http://www.microsoft.com/windowsxp/expertzone/newsgroupsetup.mspx

"codemann8" <codemann8@discussions.microsoft.com> wrote in message
news:0A5B7BD8-B82D-4378-972E-21C7BFD7E5F7@microsoft.com...
>I was wondering how to automatically save the results and contents of a
> command prompt session to a standard text file for later viewing using a
> certain command.


Save Contents of Command Prompt to Text File