• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

NT shell and I/O redirection.

fow99

Senior member
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,
 
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.
 
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.
 
Back
Top