Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29252 Discussions

Changing command-level environment variables

onkelhotte
New Contributor II
904 Views
Hi there,
is there a possibility to change or add environment variables that are stored in My Computer ->Properties -> Advanced -> Environment Variables? SetEnvQQ is only for the current process...
Thx in advance,
OnkelHotte
0 Kudos
4 Replies
durisinm
Novice
904 Views
I run Windows XP with an account that has administrative privileges. At the bottom of the Environment Variables dialog box are three buttons labeled New, Edit, and Delete. You can use Edit to modify the definitions of existing user and system variables, and you can use New to create new variables.

I don't know what you're getting at when you state that SetEnvQQ is only for the current process.

Mike D.
0 Kudos
Steven_L_Intel1
Employee
904 Views
setenvqq does affect the current process (and child processes) only. To make permanent changes, you update the registry.
0 Kudos
onkelhotte
New Contributor II
904 Views
So there is no chance to update those variables at run-time, I have to add them manually in the environment dialog box...
0 Kudos
Steven_L_Intel1
Employee
904 Views
Yes, you can update them in a program - that's how installers do it. You use the Win32 API routines for updating the registry. The system variables are under HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerEnvironment
0 Kudos
Reply