views:

5256

answers:

7

In an HTML file on My Computer, I'm trying to use the Scripting.FileSystemObject in a script. How can I disable the popup saying "Any ActiveX control on this page may be unsafe for scripting"?

The "Internet Options" Security pane allows one to set "Initialize and script ActiveX controls not marked as safe for scripting" to Enabled for various zones, but files on the local computer don't appear to be in any of the listed zones.

So I guess the alternate question is "How can I edit the security options for local files?"

System: Windows XP SP3
Internet Explorer 7

A: 

Tools | Advanced tab .. way down under Security .. "Allow active content to run in files on My Computer"

Scott Evernden
+2  A: 

By pure hackery, I discovered that setting the following registry value does it:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000

But I'm still wondering whether there's any supported way of doing this.

A: 

There's a registry way of getting "Local Computer" to appear as one of the security zones. But this article doesn't mention IE7, so IE7 might be different. XP also has new settings like "Allow active content to run in files on My Computer" under advanced options.

Alternatively, if you rename your local .html file to .hta (a HMTL application), that might be what you're looking for. Unless you need all the browser chrome.

Lee Kowalkowski
A: 

Activex Controls often prompt an error message while trying to launch course through the local files. (For IE7)

Please set the following settings under internet option\Security\Internet\custom level\

  1. Run Activex controls and plug ins - Enable
  2. Script Activex control marked safe for scripting - Enable
  3. under Scripting - Active Scripting - Enable

Also please check the following check box undertools\Internet options\Advanced\security 1. Allow active content to run in my files on my computer.

~Alpana

A: 

Depends on the version. Here's for IE32 on x64 Windows:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories]

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95801-9882-11CF-9FA9-00AA006C42C4}]

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95802-9882-11CF-9FA9-00AA006C42C4}]

WRFan
A: 

try to read the solution from this list of activex controls question.

Ryan E.
A: 

try to read the solution from this list of activex controls question.

Ryan E.