Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1732

Determine where STDOUT is redirected

$
0
0
TCC has the _stdout internal variable,
it's purpose being to return 1 if STDOUT points to the console, or 0 if it has been redirected.

I would like to know where STDOUT is being redirected to.

If there is a method to do this, I have missed it in the help file.

The .btm that I wrote (below) is supposed to tell me,
but it always returns 0.

Here are a few sample runs;
Code:
E:\Utils>stdio.btm
STDIN points to the console
STDOUT points to the console
GetStdHandle: 84
FILE_TYPE: 0
Either the...

Read more

Viewing all articles
Browse latest Browse all 1732

Trending Articles