如何在chrome扩展中执行shell执行? [英] How do I perform a shell execute in a chrome extension?
问题描述
我没有找到在Chrome浏览器中执行此操作的方法* API甚至实验。它不会通过wscript运行,因此
ActiveXObject(Shell.Application)
是不允许的。
我担心我唯一的选择是用NPAPI构建一个dll,但我想知道是否有更简单的方法。 解决方案
如果您想以本地方式执行任何操作,则需要使用NPAPI。这允许您在沙箱外为您的扩展程序运行代码。
http://code.google.com/chrome/extensions/npapi.html
I'm not finding a way to do this in the chrome.* API or even the experimental. It doesn't run through wscript so
ActiveXObject("Shell.Application")
isn't allowed.
I fear that my only option is to build a dll with NPAPI but I wanted to see if there was a simpler way.
If you want to do anything Natively, you need to use NPAPI. That allows you to run code outside the sandbox for your extensions.
http://code.google.com/chrome/extensions/npapi.html
这篇关于如何在chrome扩展中执行shell执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!