| 1. |
Solve : Redirecting output to both file and screen? |
|
Answer» Is it possible in DOS to print the output both in a file and stdout ? 1) search for the windows port of the tee command ..you know how to right? It is surprising that someone with a Unix type background does not know how to type "tee port NT" into Google. If they did they would have found (among others) Rob van der Woude's tee.bat, or the excellent blip project's package which includes tee.cmd. Mind you, we are assuming the OP actually meant "NT/W2k/XP/Vista command line" when they typed "DOS"... not always a safe assumption... maybe they will clarify? For "real" MS-DOS there is FORK.COM, again findable with Google (it's in FORK33.ZIP)Quote Mind you, we are assuming the OP actually meant "NT/W2k/XP/Vista command line" when they typed "DOS"... not always a safe assumption... maybe they will clarify?hmm...how about another sub forum called Disk Operating System (DOS).? is it warranted? Well, to me there is MS-DOS and there is NT command prompt. They are different things, and I don't like to see them mixed up. Because the NT command language has many of the same commands as MS-DOS, with (sometimes, but not always) the same syntax, many people confuse them, or assume that the command window you get in 2K/XP/Vista is actually called "DOS". I guess the problem is most acute among the "GUI generation" who are aged under about 25, who have grown up with Windows of one form or another. I personally FEEL that this forum has made a rod for its own back by not SUFFICIENTLY distinguishing between them. I can imagine that ANSWERING questions that ask about "DOS" with a purely MS-DOS based answer would pretty soon ram the point home... |
|