Friday, January 15, 2016

Piping CMD Console Output to the Screen and a File

Use WinTee

Piping output to multiple destinations has always been a piece of cake on Linux, but Windows has never had an easy built-in way to do this.

wintee provides a solution.

Just download the executable and either place it in the directory in which you want to execute your command, or place it somewhere on your windows path.

Then, it is just...

dir | wtee myLogFile.txt