I tried using SetEnvironmentVariable but the variable is lost when the
applikation is closed.
I want it to stay. Maybe have the possibility to get ridd of it later.
Is there a way to solv this?
/Henrik
With W2K, for example, "permanent" environment variables are controlled from
the Settings/Control Panel/System/Advanced tab. With W95, I believe
autoexec.bat is still used. (With Linux systems, you change the user's logon
script, or the system startup script, depending on whether you want it
global or local.)
Ray
"Henrik Jonsson" <henrik....@ninetechgruppen.se> wrote in message
news:3c72022e_2@dnews...
change the variables in the registry, key:
user: HKEY_CURRENT_USER\Environment
system: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment
then reboot your computer, or call:
SendMessage(HWND_BROADCAST,WM_INICHANGE,0,pchar('Environment'));
under win95/98:
change their values in c:\autoexec.bat, and reboot.
--
Bas Gooijen
"Henrik Jonsson" <henrik....@ninetechgruppen.se> wrote in message
news:3c72022e_2@dnews...