Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Refreshing the Windows Registry

by MADuran (Beadle)
on Jan 15, 2004 at 16:35 UTC ( #321602=note: print w/ replies, xml ) Need Help??


in reply to Refreshing the Windows Registry

If I am reading correctly you want to use your new registry settings with out a reboot.

IF I remember correctly you need to send a  WM_SETTINGCHANGE message to the windows OS. The WIN32::OLE::NLS module has SendSettingChange() function that does just that. This is untested and over a year old memory.

update: I miss read the question. Still you will need to send the WM_SETTINGCHANGE message for open windows (the Command/CMD prompt) to know about your change.

MADuran
Who is in need of a spiffy sig


Comment on Re: Refreshing the Windows Registry
Select or Download Code
Re: Re: Refreshing the Windows Registry
by Anonymous Monk on Jan 15, 2004 at 16:49 UTC
    That seems to work but after calling:
    Win32::OLE::NLS::SendSettingChange();
    The rest of my script hangs

    Any thoughts?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://321602]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-10-26 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls