Indarnav
asked on
change key value
vbs code to edit following key..
[HKEY_CURRENT_USER\Softwar e\Microsof t\Windows\ CurrentVer sion\Explo rer]
"ShellState"=hex:24,00,00, 00,33,28,0 0,00,00,00 ,00,00,00, 00,00,00,0 0,00,00,00 ,\
01,00,00,00,12,00,00,00,00 ,00,00,00, 22,00,00,0 0
after running code the above value should be
[HKEY_CURRENT_USER\Softwar e\Microsof t\Windows\ CurrentVer sion\Explo rer]
"ShellState"=hex:24,00,00, 00,33,08,0 0,00,00,00 ,00,00,00, 00,00,00,0 0,00,00,00 ,\
01,00,00,00,12,00,00,00,00 ,00,00,00, 22,00,00,0 0
[HKEY_CURRENT_USER\Softwar
"ShellState"=hex:24,00,00,
01,00,00,00,12,00,00,00,00
after running code the above value should be
[HKEY_CURRENT_USER\Softwar
"ShellState"=hex:24,00,00,
01,00,00,00,12,00,00,00,00
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
above code is working perfect, can i use same for adding or editing any such values? in above key there are 36 values in array, can above be used if key value is more or less than 36 in similar way?
Yes. You can use any amount of values in the array. The amount of 36 is by no means a fixed amount, it can be from zero (empty array) to any length.
ASKER
ok, thanks
However, you can do it through WMI using the following method (from: http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb05/hey0224.mspx). Note that the array of integers are containing decimal numbers. If you hex value is 1A, the decimal will be 16+10 = 26, etc.
Open in new window