Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!xanth!nic.MR.NET!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon S. Allbery) Newsgroups: comp.sys.ibm.pc Subject: Strange happening with INT 21, AH=4EH Message-ID: <13338@ncoast.UUCP> Date: 15 Jan 89 05:28:32 GMT Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery) Distribution: na Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 21 In designing an "ls" program for myself, I've been playing with the INT 21 function 4E/4F (find first/next match file). Just for laughs, I tried invoking it on the pathname \DEV\CON -- and, to my surprise, it returned with an attribute byte of 40H! In playing with it, I discovered that \DEV\CON was the *only* device that produced this behavior; other devices, and \DEV\*.*, returned AX=3 (path not found). This was done in a Turbo Pascal 3.01 program running under MS-DOS 3.21. Anyone know if I hit a fluke or if this actually happens? Does it have to do with the device being open by the program (i.e. \DEV\CON is stdin/stdout/stderr -- but then, \DEV\CON1 should be open as stdaux and \DEV\LPT1 as stdprn)? Thanks in advance, from a very curious ++Brandon -- Brandon S. Allbery, moderator of comp.sources.misc allbery@ncoast.org (soon) uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu Send comp.sources.misc submissions to comp-sources-misc@ NCoast Public Access UN*X - (216) 781-6201, 300/1200/2400 baud, login: makeuser