magnus@itkonsult-olsen.com wrote:
Hi Some Err msg shall always goes thurg the ConErr. but some error msg are redirect with commad > file, and goes to that file. I have test it on win2k cmd see which err msg did go to ConOut and which did goes to ConErr.
I do not agree. Some simple tests show wrong results:
cd 123 1>1.txt 2>2.txt dir 123 1>1.txt 2>2.txt
The error message is in 1.txt. They should be in 2.txt. 123 isn't a valid directory or file.
123 1>1.txt 2>2.txt
This sample shows the correct result.
- Hartmut