Define a new handle (Similar to STDOUT)

Posted by Monacraft on Stack Overflow See other posts from Stack Overflow or by Monacraft
Published on 2013-11-12T03:50:08Z Indexed on 2013/11/12 3:53 UTC
Read the original article Hit count: 189

Filed under:
|
|

I was looking at redirecting handles in batch, when I noticed this:

Table from wikipedia page

Here is the link

It mentions that Handle 3-9 are undefined and can be defined by a program. Now I've read about doing this in C#, but I wondered if this was possible in cmd/batch - and if it is what are its limitations/use.

If it is not possible in cmd how would I go about using this, and could it be a soloution to outputing data to the screen and redirecting it to a file at the same time (a problem which has not been able to be done legitametly at the same time).

Thanks, Mona.

© Stack Overflow or respective owner

Related posts about batch-file

Related posts about stdout