update environment-vars (win32api)

Dirck Blaskey dirck.IsGettingTooMuchSpam at pacbell.net
Mon May 29 13:50:35 EDT 2000


<robert_kuzelj at my-deja.com> wrote in message
news:8gtl3s$90n$1 at nnrp1.deja.com...
> im trying to set some environment vars in the registry.
> which actually is working fine with the win32api-module.
>
> but what bothers me (even so this is no python-problem) is the
> fact that if i open a dos-box (winNT4.0sp5) and try to get
> the new defined values it seems not to exist.
>
> only after i open up the system-dialog and there the environment-tab
> (where i do see the new vars) and i click on set and ok, then the
> vars appear in the dos-box too.
> ...

The Microsoft site says you have to send an event to tell
everybody the environment changed (I haven't tried this):

http://support.microsoft.com/support/kb/articles/Q104/0/11.asp

Apparently this works for NT but not for Windows95.

Good Luck,

d
______________________

Dirck Blaskey
Danbala Software
http://www.danbala.com
______________________






More information about the Python-list mailing list