Subj : redirection of stdout. To : Winston Smith From : Jasen Betts Date : Mon Mar 25 2002 10:18 pm 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 <=- --- * Origin: Don't believe everything you hear or anything you say (3:640/531.42) .