1.

Solve : split output of commands?

Answer»

So I want to write all my input and output from cmd to both the screen and a file. Is this POSSIBLE?

Code: [Select]cmd 1>log 2>&1 1>[SCREEN] 2>[SCREEN]
In *nix type operating systems you have the TEE command, this is not available in Windows, but there are various workarounds, just look for Windows Tee susbtitutes on Google. Or look here...

http://stackoverflow.com/questions/796476/displaying-windows-command-prompt-output-and-redirecting-it-to-a-file


Thanks! Apparently 'tee' works, though it only sends the output. I'll KEEP LOOKING though.What do you mean by the "input"?
This:
Code: [Select]
C:\Users\Lemonilla>echo ok
ok


is RECORDED as:
Code: [Select]
C:\Users\Lemonilla>
ok
What HAPPENED to the echo OK command?

It sounds like you want to save the console buffer to a text file; this is quite hard to do in the normal cmd.exe console, but you can do it with alternative consoles like Alternatve Windows Console

http://sourceforge.net/projects/windowsconsole/?source=dlp



Discussion

No Comment Found