通过javascript运行exe文件 [英] run exe file through javascript

查看:102
本文介绍了通过javascript运行exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想通过javascript打开exe文件.当我在我的电脑中打开它时,它工作正常,但是当我尝试在客户端电脑中打开它时,显示错误

shell.run("file:///C:/Practice/act.exe");

我想知道有什么方法可以运行我的exe文件,该文件保存在asp.net应用程序的bin文件夹中.

我希望它能清除

谢谢

Hi,

I want open exe file through javascript. Its working fine when i''m opening it in my pc but when i''m trying to open it in a client pc it shows error

shell.run("file:///C:/Practice/act.exe");

I want to know is there any way to run my exe file which i kept in my bin folder of my asp.net application.

I hope it clears

Thanks

推荐答案

由于安全原因,这不是从javascript运行EXE的好习惯.
这样做有什么特殊原因吗?

如果您仍然想要,请查看示例..
http://www.dotnetspider.com/resources/19547-Run-exe- file-Java-Script.aspx [ ^ ]

注意:
您需要将文件保存在客户端计算机上以下位置的文件中.
C:/Practice/act.exe
this is not a good practice to run EXE from javascript due to security reasons.
Any specific reason for doing so?

check the example if you still want..
http://www.dotnetspider.com/resources/19547-Run-exe-file-Java-Script.aspx[^]

Note:
the file needs to be present at the client''s machine at the following location in your case.
C:/Practice/act.exe


JavaScript纯粹是客户端脚本.您无法从客户端运行服务器exe.
这不是使用javascript触发exe的好习惯.可能会对计算机造成专利威胁.
Javascript is purely client side scripting. you can not run exe of server from client.
it is not good Practice to trigger exe using javascript. it may patential threat to computer.


这篇关于通过javascript运行exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆