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?

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

Windows PowerShell has a Start-Transscript cmdlet.

link|improve this answer
very cool - does anything similar exist pre-Powershell? This is definitely going to be a boon :) – warren Mar 30 '10 at 19:15
@warren: Not that I know of and rarely needed. I only ever needed a log of batch files but those are trivial to do. Sessions ... not so much. Shouldn't be too hard writing a program that dumps the complete console log to a file afterwards, though. – Joey Mar 31 '10 at 7:55
feedback

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:\Path\some_log_file.txt
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.