-
registry
I would like to disable right clicking in a browser, among other things.
Here's how I've been told to do it:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserContextMenu
Data Type : DWORD = 00000001
How would I access this registry info using VB?
-
Set wshshell = CreateObject("Wscript.Shell")
GetKey = wshshell.regread("HKLM\system\currentcontrolset\control\session manager\environment\PATH")
DelKey = wshshell.RegDelete("HKLM\system\currentcontrolset\control\session manager\environment\PATH")
wshshell.RegWrite "HKLM\system\currentcontrolset\control\session manager\environment\PATH", "" & GetKey & "", "REG_EXPAND_SZ"
This example updates a system environmental variable with a new value of a new string type. It is similar to what you need. "Delkey =" I just use it to check that the value is blank.
Good luck.
-BernieB