Keep stdout on screen AND in File
        Posted  
        
            by user18771
        on Super User
        
        See other posts from Super User
        
            or by user18771
        
        
        
        Published on 2010-05-26T18:31:21Z
        Indexed on 
            2010/05/26
            18:33 UTC
        
        
        Read the original article
        Hit count: 311
        
I open a command prompt window in XP. There I run a command line program (foo.exe) and I want to capture stdout in a file. So I run it like this:
foo > fooResult.txt
However, at the same time I would like stdout to still be fed to the screen of the command prompt window. What is the syntax for that?
© Super User or respective owner