Hi! Casualy I found that RAR doesn't waits input when output redirected to NUL. Eugeny Roshal answers me that he uses next trick:
int Flags=ioctl(1,0); if ((Flags & 0x80)==0 || (Flags & 3)==0) SkipPrompt=1; (BTW, this code may be optimized to "skip = (ioctl (1,0) & 0x83) < 0x80;"). Very funny trick. :) PS: Bart, what you may say: there tested both stdin (mask 0x1) and stdout (mask 0x2) features (and for CON both in MS-DOS and FreeDOS both bits are set), but may be enough to test only stdout bit (ioctl & 0x82)? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel