[英]FileSystemObject
My script fly with IE8 when I instantiate the file system object: 实例化文件系统对象时,我的脚本随IE8一起飞行:
var fso = new ActiveXObject("Scripting.FileSystemObject");
alert("does not reach this point");
Any ideas? 有任何想法吗?
Microsoft blocked ActiveXObject("Scripting.FileSystemObject")
with a kill bit or removed the registry keys required to launch it for newer versions of IE, including IE 8. This was done for security reasons. Microsoft使用kill bit阻止了ActiveXObject("Scripting.FileSystemObject")
或删除了为包括IE 8在内的较新版本的IE启动启动它所需的注册表项。 So unless you modify the registry, it should not launch. 因此,除非您修改注册表,否则它不应启动。
More on this issue, and solutions are available from MSDN at: http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/27092b49-7d3e-4d86-9ffb-223a26037c3f 有关此问题的更多信息,请参见MSDN, 网址为: http : //social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/27092b49-7d3e-4d86-9ffb-223a26037c3f
Modifying the registry to mark FileSystemObject Active Control as Safe: http://msdn.microsoft.com/en-us/library/aa751977(VS.85).aspx 修改注册表以将FileSystemObject Active Control标记为安全: http : //msdn.microsoft.com/zh-cn/library/aa751977(VS.85).aspx
There is also a similar thread here: "var f = new ActiveXObject('Scripting.FileSystemObject');" 这里也有一个类似的线程: “ var f = new ActiveXObject('Scripting.FileSystemObject');” not working with IE8 不适用于IE8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.