Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Adding Directories to Path Failure

01 May 2011   #1

Windows 7 Pro x64
Adding Directories to Path Failure

How do you actually add directories to path? Every tutorial I've come across just says tack the path on to the end of the PATH variable after the previous variable's semicolon. That doesn't work. For instance if I want to add a path B:\MinGW\bin\ I would just add it to the system variable PATH like so

<other stuff>; B:\MinGW\bin\;

and now anything in the bin directory of MinGW should be in the path. Why doesn't this work? It still pulling the "this is not an internal or external command" nonsense on me. I've also tried adding directories on the C drive to path and ended with the same results.

My System SpecsSystem Spec

01 May 2011   #2

Windows Server 2008 R2

How are you adding things to PATH, and how are you including the previous PATH statement, specifically? If you're just using SET in a prompt and then opening a new app (that isn't a child of that prompt), you lose that change. If you want a change to be permanent, you need to use the SETX command (or change the PATH via the control panel).
My System SpecsSystem Spec
01 May 2011   #3

Windows 7 Pro x64

I'll answer my own question. I have absolutely no idea why on earth you would need to do this but here's what I did to get it to work. I had to make a new variable by clicking

1) New
2) Enter the variable name in the name box (doesn't matter what it is)
3) Now enter the directory you want added in variable value
4) Now edit the path variable and add %your_variable_name_here%; to the path.
5) After the variable in %s add the hardcoded path that you already put in variable value for the variable you created.

That's what it took to get it working. Does it make any sense that you would have to essentially add the path twice? No, but I'm sure there's some underlying cause for it O.o. Hope this helps somebody because it took me forever to figure out.
My System SpecsSystem Spec


 Adding Directories to Path Failure

Thread Tools

Similar help and support threads for2: Adding Directories to Path Failure
Thread Forum
Open a new window with "full path" instead of Search Results\"Path" General Discussion
Solved Some directories share, others don't (Win 7 and XP) Network & Sharing
Directories renamed General Discussion
Merging directories in Win 7 General Discussion
What are all these extra directories General Discussion
Windows 7 Directories General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:45 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33