I have used regedit many times, I know how to write .reg files and run them. If I run one, and look inside with the Regedit tool, I can see it shows right there, immediately.
For this one I want 3 little reg files to switch a handful of Environment Variables, i have 3 versions of our application that I need to test and I'm tired of going into the System Properties to edit them there. Depending on which one I want opened, the registry tells the app which version to do.
Hey! They are in the Registry and I know how to do that! So with the 3 files and 3 buttons to push on the taskbar, much quicker. And yes, I backed it all up first.
But the application does not seem to pick up on the change right away. Even opening a command prompt (this is Windows XP) and calling "set", the value has not "updated" to the new one I just set. This really startled me. Playing around with things, I tried opening the System Properties /Environment Variables window and just clicking OK without any changes. That does it. So there is something in there that makes the change available to new processes opening, that just running the reg file does not.
What can I add to a script or reg file to make it kick in?
For this one I want 3 little reg files to switch a handful of Environment Variables, i have 3 versions of our application that I need to test and I'm tired of going into the System Properties to edit them there. Depending on which one I want opened, the registry tells the app which version to do.
Hey! They are in the Registry and I know how to do that! So with the 3 files and 3 buttons to push on the taskbar, much quicker. And yes, I backed it all up first.
But the application does not seem to pick up on the change right away. Even opening a command prompt (this is Windows XP) and calling "set", the value has not "updated" to the new one I just set. This really startled me. Playing around with things, I tried opening the System Properties /Environment Variables window and just clicking OK without any changes. That does it. So there is something in there that makes the change available to new processes opening, that just running the reg file does not.
What can I add to a script or reg file to make it kick in?