Subj : redirection of stdout. To : Winston Smith From : Jasen Betts Date : Fri Mar 22 2002 06:16 am From: Jasen.Betts@p42.f531.n640.z3.cereal.mv.com (Jasen Betts) Subject: redirection of stdout. 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 <=- -- |Fidonet: Jasen Betts 3:640/531.42 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .