#100814 - 2003-05-08 03:51 PM
Applying Registry Settings
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4562
Loc: USA
|
For months now I have been trying to figure out a way to "Apply" changes to the registry. For example if you update the registry settings for the screen saver, the settings do not take effect until you restart/logoff.
I happened to be reading through the manual and saw the following...
quote:
SetM
Action: On the Windows NT-family (NT//2000/XP), sets variables in the environment of the local computer (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment). On Windows 9x, sets variables in the global Windows environment (similar to the functionality offered by WINSET.EXE). Syntax: SETM "variable=string" Remarks: After any change to the environment, KiXtart informs running programs that the change was made, prompting them to regenerate their environments. Programs that support this feature (such as Program Manager, Task Manager, and Windows Explorer) update their environments when they receive the WM_SETTINGCHANGE message. The environment of the current process (KiXtart 2001) is not affected.
The area in bold above got me to thinking...
After making the changes to the registry, I simply added the following line:
setm 'ss='
and whola... Screensaver settings "Applied".
Hope this helps someone else down the road. [ 08. May 2003, 16:03: Message edited by: Al_Po ]
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 388 anonymous users online.
|
|
|