Mtee is a commandline utility that sends any data it receives to the console and to any number of files. Useful if you want to watch and record the output from a batch file or program.
Mtee is an 11kb standalone executable. It does not create any temporary files or write to the registry. There is no installation procedure, just run it. To remove all traces of Mtee from your system, just delete it.
Mtee is simple to use and only has several options. To list them, type mtee/?.
Note for W9x/ME users: Mtee v2.0 will only run on Windows NT4/2000/XP/2003. Please use Mtee v1.1. If you want redirect, capture or tee stderr, I recommend the free Win95Cmd utility. This will allow you to use the same redirection syntax that Windows NT4/2000/XP/2003 offers.
What's New
The following features are new to Mtee v2.0
Read and output unicode
Convert ANSI to unicode (and vice-versa)
Reads text and binary data without performing any character translations
Support for unicode filenames of ~32,000 characters
Smaller than ever. Mtee is now just 11kb (and no, it's not compressed!)
Parameters
MTEE [/A | /U] [/C] [/D] [/T] [[/+] file] [...]
/A Convert output to ANSI. Default output is the same as input
/C Continue if errors occur opening/writing to file (advanced users only)
/D Prepends each line with local date in YYYY-MM-DD format (ISO-8601).
/T Prepends each line with local time in HH:MM:SS.MSS format (ISO-8601).
/U Convert output to Unicode. Default output is the same as input
/+ Append to existing file. If omitted, existing file is overwritten
file File to receive the output. File is overwritten if /+ not specified
... Any number of additional files. Use /+ before each file to append
The parameters can be specified in any order. The only requirement is that the /+ switch, if used, must be followed by a filename.
[More...][Download]