No announcement yet.

Dos Window Output to TXT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dos Window Output to TXT

    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.

  • #2
    Re: Dos Window Output to TXT

    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

    Comment

    Working...
    X