Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I do not understand why Windows 7 is still adopting this stuffy dialog box? I feel uncomfortable when editing and looking-up a path in this narrow text box.

enter image description here

Is there a convenient way to edit PATH in Windows 7? One item per row for example.

share|improve this question
    
Viewed 11000 times and only 52 upvotes! Harsh! –  GreenAsJade Jun 5 at 6:33
add comment

8 Answers

up vote 54 down vote accepted

There is always the Rapid Environment Editor which claims full support for all major OS versions, including 64-bit.

Editable tree

Show environment variables and values as an editable tree.

Portable mode

RapidEE doesn't require installation and could be run as a "portable application". View details.

rapid environment editor shot

share|improve this answer
1  
Although it's perhaps not totally clear from the REE screen shot, REE can edit individual %PATH% entries (move up/down, highlight missing, add/delete), not just treating it as a string. Really nice app! –  GaryO Jan 31 '13 at 13:41
2  
PathEditor link is obsolete. Page on SoftPedia is a link farm which is unable to download PathEditor. –  Dims Jun 6 '13 at 10:27
add comment

For quick and dirty, copy and paste into Notepad then edit and copy and paste back.

share|improve this answer
    
+1: Good idea, but it is still painful to scroll horizontally. –  xport Jun 16 '11 at 16:52
2  
I agree. Depending on your editor of choice you could swap ";" for a return and do your editing then swap them back. Notepad will not do that substitution though. :-( –  Chris Nava Jun 16 '11 at 17:41
    
@ChrisNava idd it will not. I would recommend Sublime Text 3 :) –  aspect_mkn8rd Jun 23 at 4:06
add comment

Environment variables editor (Eveditor) is also worth mentioning. It is easy to use and completely free.

Note: Image shows the Path expanded which it did not do on Windows 7 elevated.

Eveditor

share|improve this answer
add comment

Here's another Windows Path Editor:

Screenshot

(Disclaimer: I made this. It's open source, contributions welcome!)

share|improve this answer
1  
+1 Kudos for the "show problems" feature (should be "show potential problems"). It think the buttons actions should open dialogs to explain/ask-for-options/execute. The "Automatic" dialog could have a "maximum depth" (or a folder tree selector), and with a result list with checkboxes to add them to the user or sytem path. Ah, it's so easy to tell other people how things _should_be :-) –  leonbloy May 30 '13 at 18:19
    
Although it shows many Windows defaults entries as "problematic" + it has no add button (drag&drop from Windows Explorer is fine, however, would really like an Add button in addition): I really liked it, thank you very much! –  D.R. Jun 25 at 11:31
add comment

There's a pretty good open source CLI tool called pathed. Usage patterns are like so:

C:\Projects\2010\GSharpTools_Setup\bin>pathed /?
PATHED - Version 3.2
Freeware written by Gerson Kurz (http://p-nand-q.com)

USAGE: PATHED.EXE [OPTIONS]
OPTIONS:
      /MACHINE: print machine PATH
         /USER: print user PATH
          /ADD: add variable at the head
       /APPEND: add variable at the tail
       /REMOVE: remove path / index
         /SLIM: strip duplicate vars
          /ENV: environment variable, defaults to PATH

C:\Projects\2010\GSharpTools_Setup\bin>pathed
PATHED - Version 3.2
Freeware written by Gerson Kurz (http://p-nand-q.com)

00 C:\Perl\site\bin
01 C:\Perl\bin
02 C:\Windows\system32
03 C:\Windows
04 C:\Windows\System32\Wbem
05 C:\Python26
06 C:\Tools
07 C:\Windows\System32\WindowsPowerShell\v1.0\
08 C:\Program Files (x86)\TortoiseSVN\bin
09 C:\Program Files\TortoiseSVN\bin
10 C:\Program Files (x86)\doxygen\bin
11 C:\Program Files (x86)\WinMerge
12 C:\Program Files (x86)\Subversion\bin
13 C:\Program Files (x86)\p-nand-q.com\GSharpTools [INVALID]
14 C:\Program Files (x86)\p-nand-q.com\pserv2 [INVALID]
15 C:\Program Files (x86)\OpenVPN\bin
16 C:\Windows\Microsoft.NET\Framework\v3.5
17 C:\Windows\Microsoft.NET\Framework\v2.0.50727
18 C:\Program Files (x86)\Scintilla Text Editor
19 C:\Program Files\7-Zip
20 C:\Program Files (x86)\PostgreSQL\8.4\bin
21 C:\Program Files (x86)\Java\jdk1.6.0_18\bin
22 C:\Program Files (x86)\IZArc
; pathed /REMOVE "%CD%"
; pathed /APPEND "%CD%"
; pathed /MACHINE
; and so on.

You'll need to run it as Administrator for the changes to take affect, though.

share|improve this answer
add comment

you might consider this https://patheditor2.codeplex.com/ It does not depend on .Net bloat nor MFC; pure Win32; binary size is less than 200kb. No installation is required and it is a standalone executable. If it matters, it is open source

share|improve this answer
add comment

A quick and easy way to edit PATH from the command line:

C:\WINDOWS>setx PATH "PATH;C:\some_new_path"

This will update the PATH by appending the new path to the existing path value. Typing the following command will print the new PATH in all future CMD windows; NOT in the current CMD window:

C:\WINDOWS>PATH

Typing the following will give you a list of all the environment variables:

C:\WINDOWS>set
share|improve this answer
add comment

Another option is to create a small console application in C# using methods discussed here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.