How to set path in Windows NT?

Emile van Sebille emile at fenx.com
Wed May 16 19:34:45 CEST 2001


Get a copy of reg.exe from http://www.mindspring.com/~dgthomas/.  This is a
freeware program that allows command line registry editing.  From the docs:

-EnvPathAdd dir ...
Add the directory to the end of the user path. If it already is in the path,
it will remain unchanged.

Note that this command will not affect any currently open windows. When a
new window is launched from Program Manager, it will reflect the modified
value.


Emile van Sebille
emile at fenx.com

---------

"Samuel A. Falvo II" <kc5tja at dolphin.openprojects.net> wrote in message
news:slrn9g3gfd.ro6.kc5tja at dolphin.openprojects.net...
> Not strictly Python related, but...
>
> I've written a utility batch file that I'd like to be executable after
> installing it on a computer.  How can I programmatically set the PATH
> environment variable to include a directory of my choice, such that the
next
> time the user logs in or runs the command prompt, the variable will be set
> accordingly?
>
> Thanks.
>
> --
> KC5TJA/6, DM13, QRP-L #1447
> Samuel A. Falvo II
> Oceanside, CA





More information about the Python-list mailing list