DeutschEspañolFrançaisItalianoNederlandsPortuguêsΕλληνικάРусскийالعربية中文(简体)中文(繁體)日本語한국어
 
Donate Bitcoins
Google
 
www smithii.com
 

path_set 1.3 has been released

I tried setx, and other environmental editors, but none did everything I wanted. Some would change the value from REG_EXPAND_SZ to REG_SZ. Other's wouldn't let me add a REG_EXPAND_SZ variable such as %ProgramFiles%.
So I wrote path_set.

You can download the binary here and the source code here.

Here's the changelog.txt:

path_set changelog

Version 1.3 - 12 Jul 06:

	Changed ~ character to `, as ~ is common in 8.3 paths
	Standardized version information across all programs

Version 1.2 - 08 Apr 06:

	Added .rc and .ico files
	Improved build scripts
	Updated documentation

Version 1.1 - 17 Feb 06:

	Renamed from AddPath to path_set

Version 1.0 - 06 Jan 06:

	Initial release

Here's the included readme.txt:

path_set 1.3 - Jul 07 2006
Copyright (c) 2005-2006 Ross Smith II (http://smithii.com) All Rights Reserved

------------------------------------------------------------------------------

Usage: path_set [options] path [path2 ...]
Options:
-v VarName Append path(s) to environmental variable VarName (default is Path)
-s         Modify variable in the system environment (default)
-u         Modify variable in the current user's environment
-d         Modify variable in the default user environment
-e char    Change % substitution character to 'char' (default is `)
-n         Don't add path if the variable already contains it
-p         Prepend path(s) to variable
-r         Replace the value (default is to append)
-x         Use REG_EXPAND_SZ type (default if ` char is used)
-z         Use REG_SZ type (default)
-c         Show version and copyright statement
-?         Show this help screen

Examples:
  rem append c:\bin to the system Path variable:
  path_set -n c:\bin

  rem prepend c:\usr\local\bin and c:\bin to the system Path:
  path_set -n -p c:\usr\local\bin c:\bin 

  rem Add "C:\Program Files\Java\bin" to the system Path:
  path_set -n "C:\Program Files\Java\bin"

or, even better:

  rem add or replace JAVA_HOME with %ProgramFiles%\Java
  path_set -n -r -x -v JAVA_HOME `ProgramFiles`\Java
  
  rem Append %JAVA_HOME%\bin to the system Path:
  path_set -n `JAVA_HOME`\bin

------------------------------------------------------------------------------

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

$Id$

In version 1.0 this program was called AddPath.

DeutschEspañolFrançaisItalianoNederlandsPortuguêsΕλληνικάРусскийالعربية中文(简体)中文(繁體)日本語한국어
 
Donate Bitcoins
Google
 
www smithii.com
 
Special thanks to Riester Rente Online for a generous donation!