ReReading Windows registry

  • Thread starter Thread starter dak
  • Start date Start date
D

dak

I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after setting
this value, so that the change becomes effective without having to reboot the
computer.
 
dak said:
I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after setting
this value, so that the change becomes effective without having to reboot the
computer.

One way would be to close and then restart Explorer.

taskkill /F /IM “explorer.exeâ€
explorer
 
Thanks.

That will work. But Microsoft must be doing something else. If I go thru the
GUI and customize the Start Menu, when I click OK it is automactically
updated.

Dave-UK said:
dak said:
I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after setting
this value, so that the change becomes effective without having to reboot the
computer.

One way would be to close and then restart Explorer.

taskkill /F /IM “explorer.exeâ€
explorer
 
dak said:
Thanks.

That will work. But Microsoft must be doing something else. If I go thru the
GUI and customize the Start Menu, when I click OK it is automactically
updated.


How about using the F5 (refresh) key's function?
 
dak said:
I am trying to write a script to add a few items like: "Connect to" to the
Start Menu. This seems pretty easy by changing values in the registry and
setting
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_ShowNetConn"=dword:00000001

works to turn "Connect To" on after the next reboot.

Is there a command to force Windows to re-look at the registry after
setting
this value, so that the change becomes effective without having to reboot
the
computer.


Sometimes, if you can locate a suitable api function to use - which I
confess I don't know in this case - a refresh is built into the actual
command.
 
Back
Top