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

2 Answers 2

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. –  Joey Mar 31 '10 at 7:55

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

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.