- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All Topicssay I have my visual studio set up in
D:\vs\
In my include directory, most of them are set up as:
$(VCInstallDir)include
I want to add another folder of includes that are in:
D:\myfiles\include
I can add the absolute path (works), but setting up the relative path is not working. I would think it would be something like:
$(SystemRoot)\myfiles\incl
but the SystemRoot is really the C:\ drive.
I'm looking for a quick primer on path setup, and the help files didn't offer it!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: waysidePosted on 2008-02-19 at 09:03:52ID: 20930229
I haven't used VS 2008 yet, but from the looks of the dialog you posted, this is the same as for VS 2005.
nced->Envi ronment variables), and then use that to add a path in the options dialog.
, Additional Include Directories). In there you can add a directory path to your include directory. Obviously this will apply only the this project, whereas adding an environment variable and using the Options dialog will work across all projects.
The things like $(VCInstallDir) that you see in the path dialog are environment variables; these all translate to absolute paths. Many are defined in vcvars32.bat .
For example on my computer VCInstallDir is "D:\Program Files\Microsoft Visual Studio 8\VC" .
So you can create you own environment variable (My Computer->Properties->Adva
Another way is the project settings, you can add an include directory (Properties->C/C++-General