Q40588: Search Order for Include Files When Using APPEND Command
Article: Q40588
Product(s): See article
Version(s): 5.00 5.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | append include | mspl13_c
Last Modified: 25-MAY-1989
A data file path can be specified in DOS by using the APPEND command.
DOS searches for a data file using the APPEND path. A file included by
a C program can be in a directory that is in the data file path. The C
compiler searches for the include file in the following order:
1. Current directory
2. Directories specified by the INCLUDE environment variable
3. Directories specified by the APPEND command
Please refer to your DOS documentation for specific information about
using the APPEND command.
Note: The APPEND command can cause other problems during
compilation, linking, and execution. Microsoft recommends not using
the APPEND command when developing C programs.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.