如何运行通过JavaScript的批处理文件 [英] How to run a batch file through javascript

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

问题描述

我已经包含在这样的锚标记bat文件路径

I have included the bat file path in anchor tag like this

< A HREF ='pdfs1255601585.bat'>执行批处理文件< / A>
但其表现出一些安全警告,执行批处理文件之前..是否有可能绕过警告运行..
否则容易,是否有任何其他的方式来运行通过JavaScript bat文件

<a href='pdfs1255601585.bat'>Execute batch file</a> But its showing some security warning, before executing the bat file.. Is it possible to bypass that warning to run.. Orelse, is there any other way to run the bat file through javascript

谢谢,结果普利文Ĵ

推荐答案

你能想象的混乱,如果这是可能的吗?访问一个网页,并删除你的硬盘。

Can you imagine the chaos if this were possible? Visit a page and erase your harddrive.

虽然在一些应用中,这将是得心应手,设计就决定对作为安全威胁是巨大的。

Although there are applications where this would be handy, by design it was decided against as the security threat is massive.

您将无法做到这一点,虽然使用JavaScript的根本。

You will not be able to do this simply though the use of JavaScript.

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

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