如何使用Html在Firefox和Chrome浏览器中访问.vbs文件

时间:2014-02-20 06:24:34

标签: google-chrome firefox vbscript activex

在IE浏览器中调用Notepad.vbs文件...它可以正常工作

Notepad.vbs包含

Dim obj
Set obj = WScript.CreateObject( "WScript.Shell" )
obj.Exec("notepad.exe")
Set obj = Nothing

如何在FireFox和Chrome浏览器中执行此Notepad.vbs ....?

2 个答案:

答案 0 :(得分:0)

CreateObject是ActiveX技术。它仅在Internet Explorer中支持。

答案 1 :(得分:0)

我们可以使用 ASP (服务器端脚本)运行 vbs脚本文件

<强> (即,):

<%
 Dim obj
 Set obj = WScript.CreateObject( "WScript.Shell" )
 obj.Exec("notepad.exe")
 Set obj = Nothing
%>