How to pipeline program result to the screen AND to a documents under Windows

I have a command which I require to evaluate in actual time (i.e. see its result in the command punctual MyProgram.exe ) and also to have a log apply for later examination ( MyProgram.exe > log.txt )



How can I make a solitary instance of the program to contact both results?

0
2019-05-13 02:19:22
Source Share
Answers: 2

You desire a unix tee duplicate like this one or this one. I'm certain there are others, yet, well, your Google for 'windows tee' is like mine.

0
2019-05-17 12:02:12
Source

Either make use of among several tee clones for Windows.

Or if you are making use of PowerShell, you can make use of Tee-Object.

0
2019-05-17 12:00:11
Source