Redirecting output to multiple files and standard output on the win XP command line

I would like to redirect the output from the command to the file and to stdout. I am using the Windows XP command prompt.

I understand that in linux there is a tee command that will do this, but I want this in windows.

+4
source share
5 answers
+2
source

The first hit when googling windows tee gives the UNIX tee style for Windows

+3
source

A simple DOS shell does not have the ability to do this at the same time.
Try using:

Windows PowerShell

or

Cygwin

+2
source

If using tee (one of the different versions of Windows) is not an option, and the command does not work for a long time or you do not need to perform further processing of the output in real time, then

 command > file && type file 

will do it for you. But only under the indicated circumstances. You should probably use tee .

+2
source

PowerShell has a tee-object (standard alias tee ) if you use a decent shell.

+1
source

All Articles