如何从我的客户端运行 Windows exe(dos 命令)(使用 Jquery)
我想在我的页面上有几个链接,这将依次调用窗口的“控制面板”,“DeviceManager”,“InstalledPrograms”等。
我已经找到了运行这些exe的等效命令,请帮助我如何调用它们来自我的 Jquery 代码。
(仅供参考)
的命令 1.控制面板是:control.exe 2. DeviceManager 为:%SystemRoot%\System32\devmgmt.msc 3.安装的程序是:control.exe appwiz.cpl
I want to have few links on my page, which would in turn call window's "Control Panel", "DeviceManager", "InstalledPrograms" etc.
I have found out the equivalent Commands for running these exes, Please help me with the ways to call them from my Jquery code.
(FYI) The commands for
1. Control Panel is : control.exe
2. DeviceManager is : %SystemRoot%\System32\devmgmt.msc
3. InstalledPrograms is : control.exe appwiz.cpl
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果没有安装某种插件,您就无法通过浏览器运行可执行文件。
这是出于安全和隐私的原因。
想象一下,如果任何随机网站都可以在您的计算机上执行任何程序,情况会是什么样子。
You can't run executables through the browser, not without some sort of plug-in installed.
This is for reasons both of security and privacy.
Just imagine for a moment what things would look like if any random website could execute any program on your machine.
尽管我同意其他人的观点,认为这是一个坏主意,但我可以想到您想要这样做的合理理由。例如,为您的公司内联网及其员工提供的技术故障排除指南,用于打开所述程序的可点击超链接将比让读者通过命令提示符输入它们更有用且更容易。一个简单的超链接怎么样?
file://
URI 一起正常工作。 img src="https://i.sstatic.net/g7AtI.png" alt="在此处输入图像描述">
Although I agree with others that its a bad idea I can think of a legitimate reason you would want to do this. e.g. a technical troubleshooting guide for your company Intranet and its employees, clickable hyperlinks to open said programs would be useful and easier then getting the reader to type them in via command prompt. How about a simple hyper link?
file://
URI