Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!ednor!sgr From: sgr@ednor.UUCP (Steve Reppucci) Newsgroups: comp.sys.ibm.pc Subject: Question on DOS APPEND command Keywords: APPEND Message-ID: <762@ednor.UUCP> Date: 3 May 89 18:27:45 GMT Reply-To: sgr@ednor.UUCP (Steve Reppucci) Organization: Boston Business Computing, Ltd.; Lawrence, MA Lines: 81 Expires: References: Sender: Followup-To: Here's a question concerning the DOS APPEND command. I'm trying to open a file from a C program (using either open() or fopen()... they behave similarly). I'm running DOS 3.3, and compiling with MSC-51 (although I get the same results if I compile with TC-20). I have set a 'data search path' using the APPEND command. It seems that if the file I'm attempting to open doesn't exist, AND a file with the same name exists in a directory that's in the search path, then that file (in the search path) gets opened (and overwritten). Note that this happens even though I've specified the full DOS pathname in the open call. My question is, is this correct behavior ?? Seems unlikely to me that the APPEND search path should be accessed at all if the file is opened using a full pathspec. And is this a compiler problem, or a DOS problem ? Is there a workaround ?? Please reply via E-Mail, I'll post a summary if there's any interest. Thanks in advance for any responses. A simplified test case output follows: ======================================================= E:\TEST1> DIR Directory of E:\TEST1 .