Login | |
|
 |
RE: change registry value - 6/8/2006 9:02:23 AM
|
|
 |
|
| |
mikeock
Posts: 124
Score: 1
Joined: 6/8/2006
Status: offline
|
set Wshshell = Wscript.CreateObject("Wscript.Shell") wshshell.RegWrite "HKEY_USERS\.DEFAULT\Control Panel\Keyboard\InitialKeyboardIndicators" , 2, "REG_SZ"
_____________________________
My sig sucks!
|
|
| |
|
|
|
 |
RE: change registry value - 6/8/2006 9:18:46 AM
|
|
 |
|
| |
mikeock
Posts: 124
Score: 1
Joined: 6/8/2006
Status: offline
|
you could do one even better! read the key first KeyVal = wshshell.RegRead("HKEY_USERS\.DEFAULT\Control Panel\Keyboard\InitialKeyboardIndicators") if Keyval <> 2 then wshshell.RegWrite "HKEY_USERS\.DEFAULT\Control Panel\Keyboard\InitialKeyboardIndicators" , 2, "REG_SZ" end if This way you only write the ky if it hasn't been changed already
_____________________________
My sig sucks!
|
|
| |
|
|
|
 |
RE: change registry value - 6/8/2006 11:42:29 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Please remember to search the forum, there is a post only hours older than yours, with the same subject already posted.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
|
|