/X (Ignore Standard Include Paths)
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
Prevents the compiler from searching for include files in directories specified in the PATH and INCLUDE environment variables.
You can use this option with the /I (Additional Include Directories) (/I
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
Click the C/C++ folder.
Click the Preprocessor property page.
Modify the Ignore Standard Include Path property.
In the following command,
/X tells the compiler to ignore locations specified by the PATH and INCLUDE environment variables, and
/I specifies the directory in which to look for include files:
CL /X /I \ALT\INCLUDE MAIN.C