Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Windows PowerShell has a Start-Transscript cmdlet.

share|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. –  Јοеу Mar 31 '10 at 7:55
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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