PDA

View Full Version : Dos Window Output to TXT



anthonyfellows
11-02-2006, 12:45 AM
I'm sending out a batch file to several hundred networked pc's with PSEXEC which is a dos tool. Is there a command that I can include in my batch file that will write the contents of the dos window into a txt file? There is so much going on in the dos window, it runs out of room so I can't just copy and paste everything because it's not all there. I'm looking for a command that will write the contents of the dos window to a txt file before it disappears so I can go back and review the results later.

hate-xfiles
10-31-2010, 07:44 AM
You could try this program-name > textfile-name.txt it will write everything that is displayed in the dos window to the file, but you will not be able to view the output of the program until it has finished. Type textfile-name.txt will display the text file.

Like this you are in a dos windows and type this dir > dir.txt