Is there a tool like `script` (Linux/Solaris/etc) for Windows?

Posted on


Perhaps the worst-named tool in the *nix world, script is extremely handy when you want to capture all the output of a terminal session.

Is there a tool like it for Windows? Specifically, without having to install something like cygwin?


Windows PowerShell has a Start-Transscript cmdlet.

MTee is a tiny (11KB) program that works like the Unix tee command.
That is, it takes the output from a program (like cmd.exe) and sends it in two directions: to the console and to a file.

So you can use:

cmd.exe | mtee.exe C:Pathsome_log_file.txt

Leave a Reply

Your email address will not be published. Required fields are marked *