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 10 Pro x64

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
Thread Forum
Open a new window with "full path" instead of Search Results\"Path"
How can I make it such that in Search Results, when I open a folder in a new window (by right-clicking a file), I will be directed to a window with the "full path" displayed in the address bar, instead of Search Results\"Path" or Search Results>"Path"? Edit: "Right-click -> open file location"...
General Discussion
Non-existant directories in System PATH variable
"echo %PATH%" gives me a list of 32 directories. 12 of these don't exist on my system, for example: C:\Windows\System32\WindowsPowerShell\v1.0\ Is there any reason to keep these directories in my System PATH variable? Is something likely to come along wanting to use one of these directories?...
General Discussion
Directories renamed
I always keep my data on a separate disk to the OS, so i can restore / upgrade without impacting my data. The issue i am seeing is i have a number of users who all have their data on the d:\ drive in directories called d:\user1s Documents d:\user2s Documents d:\user3s Documents In the cmd...
General Discussion
Merging directories in Win 7
Problem: I have a directory with 10000 .jpg files. I have another directory with 5000 .jpg files that have the same names as 5000 of those in the first directory. But some are of lesser size and some greater size. I just want to merger ie replace just the smaller files in the first directory...
General Discussion
Windows 7 Directories
I frequently work with large, commercial aircraft maintenance and operating documents in the Adobe Acrobat PDF file format. I have multiple directories/folders on my computer to classify documents according to manufacturer. I also created a "Hold" directory/folder to hold files until I can...
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 16:43.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App