How to disable “ActiveX Control May Be Unsafe” popup

activexscriptingsecurity-zone

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

Best Solution

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.

Related Question