set path variable in xp so C++ compiler program can run in dos and go to any directory.

I opened a C++ compiler program in the DOS enviornment. I went to command prompt and copied files that I was supposed to off the CD. All that went well. Opened directory and copied files to it. Well, the C++ program does not work. I think that I need to set the Path in xp. I tried doing this once and messed up and had to get a fix it program that I downloaded. Is their any way I can set the path in DOS? I read that you can, or can I set a totally new path in enviornment variables? As long as the original path is there will this C++ program look for multiple paths then pick the one that works. I would rather not mess with the original path set by windows. thanx.
killion211Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

r-kCommented:
You can see what path you're currently using by typing "path" at the command prompt in your "dos" window.

To set the path, you better off doing the following:

 Start -> Control panel -> System -> Advanced -> Environment variables

and then select the variable "Path" and click on edit etc.

Of course, you have to know what you want to make the path first. This depends a lot on which C++ compiler you're using.
0
GuruGaryCommented:
If you don't want to change the original path set by Windows, there are a few ways to change just the command prompt path.

You can see the current path with the PATH command.

If you want to add to the end of it use something like:
set path=%path%;C:\New\Path

If you want to add to the beginning of the existing path, use something like:
set path=C:\New\Path;%path%

Or if you want a brand new path use something like:
set path=c:\windows\system32;C:\New\Path;C:\Compiler

You can manually type these in which will be in effect until you close the command prompt, or put them in a batch file to run when you need them, or add them to the autoexec.nt to automatically run each time you run the command prompt.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.