Subj : redirection of stdout. To : Winston Smith From : Jasen Betts Date : Tue Mar 26 2002 06:18 am From: Jasen.Betts@p42.f531.n640.z3.cereal.mv.com (Jasen Betts) Subject: redirection of stdout. Hi Winston. 24-Mar-02 15:05:46, Winston Smith wrote to Jasen Betts >>> (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. WS> -> so how do I access the name? WS> I believe it is :.$$$ for WS> example, C:\TMP\*.$$$ or C:\WINDOWS\TEMP\*.$$$ sounds flakey looking for that %temp%\*.$$$ could be a file made by another process, even one that crashed. and there's no way to tell if it's being used to redirect inout or output. -=> 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) .