0

the following command can be used to log console application output to a text file:

    c:\>test.exe > output.txt

Is there a way to do this and display the output in a console window at the same time?

  • Create a program that logs to console and passes the data on :) - which then will be written to the file. – M. Mimpen Jun 25 '14 at 09:52

1 Answers1

0

You can use the following command in this case as a workaround. This will save the output to file and then prints the file.

c:\>test.exe > output.txt && type output.txt 
Kiran Hegde
  • 3,651
  • 1
  • 16
  • 14
  • This works, however, is there a method which allows viewing the task running in the console output window? – user2151345 Jun 25 '14 at 13:17
  • There is no such option as far as I know. You can refer this thread to find any of them helps you http://stackoverflow.com/questions/796476/displaying-windows-command-prompt-output-and-redirecting-it-to-a-file – Kiran Hegde Jun 25 '14 at 14:41
  • You are correct. There is no option in the console application. – user2151345 Aug 13 '14 at 09:23