Mahbub Posted August 16, 2006 Report Share Posted August 16, 2006 Hi All,I am using XP-SP2, Version 2002. I have written one script (vbscript) to read the registry key "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Disable Script Debugger". The problem is, if it is already set to "yes" it's returning "no" and also modifying the key value to "no". But while it's value is "no" it returns same e.g. "no" only. How can I read this key. Quote Link to comment Share on other sites More sharing options...
-pops- Posted August 16, 2006 Report Share Posted August 16, 2006 Perhaps I've got your intentions wrong but why are you writing a script to disable script debugger in IE?Script debugging can be disabled/enabled in Advanced Internet Options in the Tools menu in IE. Quote Link to comment Share on other sites More sharing options...
cozofdeath Posted August 16, 2006 Report Share Posted August 16, 2006 I'm not a VB Scripter but I looked up an example script on reading registry values and made this up and it works for me. Of coarse you must have that key in your registry.Option ExplicitDim objShellDim strYesORNo, strIEScriptDebugstrYesORNo = "Disable Script Debugger"strIEScriptDebug = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\"Set objShell = CreateObject("WScript.Shell")strYesORNo = objShell.RegRead(strIEScriptDebug & strYesORNo)Wscript.Echo "Disable Script Debugger = " & strYesORNoWScript.Quit Quote Link to comment Share on other sites More sharing options...
Mahbub Posted August 17, 2006 Author Report Share Posted August 17, 2006 I want the same as because I am trying to write a SupportAction which does everything programmatically. I have already written vbscript code to read the registry key "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Disable Script Debugger". The funny thing is that the value of this key modifies automatically to "no" if the previous value is "yes". But the reverse is not happening. This behaviour also varies from system to system. I am using XP-SP2, Version 2002. I have tested the same in XP-SP2, Version : 2149, there is no problem in that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.