NT shell and I/O redirection.

fow99

Senior member
Aug 16, 2000
510
0
0
Hi all,

I am doing a bit NT cmd shell scripting and would like to do some logging of the output to a file. However, '>' will cause the output to go to the file only.

Is there a way I can put the output to stdout and the file at the same time?

thanks,
 

fow99

Senior member
Aug 16, 2000
510
0
0
Originally posted by: BitSpit
After redirecting output to a file, just use the TYPE command to display it.

:(
That is not what I want.
I want the kind of thing *nix shells have where the output is *really* performed twice.

You see I want to keep an eye on the progress and keep a copy of the log too.
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Are you just using batch files or something? Write in VBScript and execute via the Windows Scripting Host. The other option is to just write a compiled program.