JavaScript:在客户端系统上搜索.EXE [英] JavaScript: Searching for an .EXE on Client System

查看:83
本文介绍了JavaScript:在客户端系统上搜索.EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在使用JavaScript的客户端系统上找到特定的.exe.如果找到一个.exe,那么我想创建一个批处理文件,其中包含文件的完整路径.

使用JavaScript查找文件 [

Hi,

I want to find a particular .exe on a client system using JavaScript. If an .exe is found then I want to create a batch file which contains the full path of the file.

Find files with JavaScript[^]

I uses the above link but i didn''t get a solution.

Any help is greatly appreciated.

推荐答案

您可以想象,如果每个JavaScript程序都可以扫描客户端计算机上的文件,则此功能非常危险.因此,通常这是不允许的.如果您想使其成为可能,则可以将您的网站连接到客户端的受信任的站点"(IE/工具/Internet选项/安全性)并降低其安全级别.例如,您可以启用"ActiveX控件和插件"中的所有选项,这将允许javascript使用FileSystemObject.

请注意,互联网上通常没有人会允许这样做.他们宁愿自己搜索文件并在需要时将其上传.


祝你好运!
You can imagine that this functionality is pretty dangerous if every javascript could just scan a client machine for files. So, normally this isn''t allowed. If you want to make it possible you could your web site to client''s "trusted site" (IE/Tools/Internet options/Security) and decrease the security level of it. For example, you can enable all options in "ActiveX controls and plug-ins", and this will allow the javascript to use the FileSystemObject.

Be aware that nobody on the internet would normally allow this. They would much rather search a file themselves and upload it if needed.


Good luck!


这篇关于JavaScript:在客户端系统上搜索.EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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