From: bbiker Date: 2007-02-06T11:45:09+09:00 Subject: Re: - PathEditor 1.0.0 - A command line utility for managing your Window's Path On Feb 5, 5:17 pm, "Justin Bailey" wrote: > What it is > ======= > > Anyone who's had to update their Windows PATH variable more than once > in a week knows it's a tiresome, error-prone, and clumsy process. This > utility aims to make it simple and easy. > > Where to get it > =========== > > The tool is available as a gem: > > gem install patheditor > > Usage > ===== > > Once installed, type > > path_editor > > To see the current entries in your path. Options are available to add > or remove path components, or you can automatically clean duplicate > and non-existent directories. > > For a listing of all options available, type: > > path_editor --help > > When the path is updated, all processes are notified. The current > command prompt and any future prompts launched from "Start | Run" will > have use the new setting. > > Bug Reports, Feedback, etc. > ===================== > > The RubyForge project page hosts a forum for requesting help or > leaving feedback, and is available at: > > http://rubyforge.org/projects/patheditor/ > > Feel free to contact me via email. I hope this tool gives all Win32 > Rubyists one less complication to deal with! > > Justin I just installed the patheditor gem and gave it a quick test ... it failed!!! c:\ruby>path_editor Current path entries: C:\Program Files\Arachno Ruby IDE\cmdline C:\Tcl\bin C:\Program Files\Arachno Ruby IDE\cmdline c:\program files\graphicsmagick-1.1.7-q16 c:\program files\imagemagick-6.2.8-q16 C:\Perl\bin\ C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Utilities\Bin\x86 C:\swig C:\Perl\bin C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\ATI Technologies\ATI Control Panel C:\p2x C:\Program Files\Microsoft Visual Studio 8\VC\Bin C:\Program Files\Microsoft Visual Studio 8\Common7\IDE C:\Program Files\Microsoft Platform SDK\Bin\win64 C:\Program Files\IDM Computer Solutions\UltraEdit-32 Note that there apparently are two C:\Perl\bin .. true one there is with C:\Perl\bin. and two C:\Program Files\Arachno Ruby IDE\cmdline I invoked the clean command: c:\ruby>path_editor --clean Removing C:\swig NOTICE that it removed C:\swig !!!!! this only occurred once and neither duplicate were deleted c:\ruby>path_editor Current path entries: C:\Program Files\Arachno Ruby IDE\cmdline C:\Tcl\bin C:\Program Files\Arachno Ruby IDE\cmdline c:\program files\graphicsmagick-1.1.7-q16 c:\program files\imagemagick-6.2.8-q16 C:\Perl\bin\ C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Utilities\Bin\x86 C:\Perl\bin C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\ATI Technologies\ATI Control Panel C:\p2x C:\Program Files\Microsoft Visual Studio 8\VC\Bin C:\Program Files\Microsoft Visual Studio 8\Common7\IDE C:\Program Files\Microsoft Platform SDK\Bin\win64 C:\Program Files\IDM Computer Solutions\UltraEdit-32 I was able to add C:\swig back. c:\ruby>path_editor --remove C:\Perl\bin\ Removing path C:\Perl\bin\ NOTE BUENE it removed both C:\Perl\bin\ and C:\Perl\bin c:\ruby>path_editor Current path entries: C:\Program Files\Arachno Ruby IDE\cmdline C:\Tcl\bin C:\Program Files\Arachno Ruby IDE\cmdline c:\program files\graphicsmagick-1.1.7-q16 c:\program files\imagemagick-6.2.8-q16 C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Utilities\Bin\x86 C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\ATI Technologies\ATI Control Panel C:\p2x C:\Program Files\Microsoft Visual Studio 8\VC\Bin C:\Program Files\Microsoft Visual Studio 8\Common7\IDE C:\Program Files\Microsoft Platform SDK\Bin\win64 C:\Program Files\IDM Computer Solutions\UltraEdit-32 c:\swig c:\ruby>path_editor --add c:\swig Added c:\swig to path. I tried to delete C:\Perl\bin\ --- notice the last back slash c:\ruby>path_editor Current path entries: C:\Program Files\Arachno Ruby IDE\cmdline C:\Tcl\bin C:\Program Files\Arachno Ruby IDE\cmdline c:\program files\graphicsmagick-1.1.7-q16 c:\program files\imagemagick-6.2.8-q16 C:\Perl\bin\ C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Utilities\Bin\x86 C:\Perl\bin C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\ATI Technologies\ATI Control Panel C:\p2x C:\Program Files\Microsoft Visual Studio 8\VC\Bin C:\Program Files\Microsoft Visual Studio 8\Common7\IDE C:\Program Files\Microsoft Platform SDK\Bin\win64 C:\Program Files\IDM Computer Solutions\UltraEdit-32 c:\swig c:\ruby>echo %PATH% C:\Program Files\Arachno Ruby IDE\cmdline; C:\Tcl\bin; C:\Program Files\Arachno Ruby IDE\cmdline; c:\program files\graphicsmagick-1.1.7-q16; c:\program files\imagemagick-6.2.8-q16; C:\Perl\bin\;C:\Program Files\Microsoft DirectX 9.0 SDK (October2005\Utilities\Bin\x86; C:\swig; C:\Perl\bin; C:\WINDOWS\system32; C:\WINDOWS;C:\WINDOWS\System32\Wbem; C:\Program Files\ATI Technologies\ATI Control Panel; C:\p2x; C:\Program Files\Microsoft Visual Studio 8\VC\Bin; C:\Program Files\Microsoft Visual Studio 8\Common7\IDE; C:\Program Files\Microsoft Platform SDK\Bin\win64; C:\Program Files\IDM Computer Solutions\UltraEdit-32; C:\Program Files\Arachno Ruby IDE\cmdline; G:\ruby\bin; C:\ruby\bin; C:\Program Files\IDM Computer Solutions\UltraCompare NOTE BUENE path_editor failed to pick up the last 3 entries in my %PATH% variable. I guess that path_editor is not quite ready for prime time. It does promise to be a handy tool...so please fix it.