Subj : redirection of stdout. To : Winston Smith From : Jasen Betts Date : Thu Mar 21 2002 10:16 pm Hi Winston. 20-Mar-02 11:01:43, Winston Smith wrote to Jasen Betts WS> RE: redirection of stdout. BY: Jasen Betts to All on Sun Mar 17 WS> 2002 16:43:09 >> (4dos/msdos:) is there a way (using 4dos) to detect from inside a >> batch file if stdout has been redirected (to a file/pipe). WS> Under MS-DOS using a pipe creates a temporary file in your WS> designated temporary directory that uses three dollar/currency WS> signs as a naming convention. It would be fairly easy to scan for WS> that. so how do I access the name? WS> I am not sure how 4DOS handles output redirection. I think WS> that it can redirect Standard Error? (probably dup2 / int21,46) like every other application... I've got a little assembler prog than can detect if stdout is going into a file, I just wondered if 4dos can do that too. -=> Bye <=- --- * Origin: Xerox does it again and again and again and ... (3:640/531.42) .