Environment variables in Windows 2000

Tim Roberts timr at probo.com
Sat Nov 24 00:56:45 EST 2001


"Brian Geddes" <brian.j.geddes at intel.com> wrote:
>
>I've been trying to store/pass information in environment variables in
>Windows 2000, but things aren't working the way I expect them to.

The short and rather unsatisfactory answer is that you just cannot do this
in a Win32 application.  You cannot change an environment variable in a
Win32 program in a way that outlives the process (except for the registry
hack mentioned earlier, which affects ALL processes from that point
forward).  You can affect the environment in your CHILD processes, but not
in your SIBLINGS.
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list