I’m always dinking with my PATH variable at the command prompt. But the supplied windows “path” command is (and has always been) pathetic.
Well, after my latest episode of typing “path” and getting 6!!! lines of clutter I had had enough. So I wrote this little utility that lets me do all the things I always want to do, and a few other things thrown in.
Get it here. (Download links are at the bottom of the page.) It should work on any 32-bit version of Windows.
Available as a binary or as full source code. C++, compiled with MinGW and Boost.
It works by temporarily injecting executable code in its parent’s process (which should be cmd.exe), so if you are running an anti-virus it will complain at you the first time you run it. This is the only way to non-permanently modify environment variables in another process in Win32.