Javascript 来获取正在运行的进程? [英] Javascript to get running processes?

查看:129
本文介绍了Javascript 来获取正在运行的进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在网络浏览器(最有可能是 IE)中使用 Javascript 来检索当前正在运行的进程列表?

I'm wondering if it's possible to use Javascript in a web browser (most likely IE) to retrieve a list of currently running processes?

我不会尝试启动或关闭任何进程或类似的事情.只是一个我可以检查的列表,然后说例如,如果某个进程正在运行,请执行其他操作.

I'm not trying to start any processes or close them or anything like that. Just a list that I can check through then say for example do something else if a certain process is running.

推荐答案

不,您无法从以正常权限运行的基于浏览器的 javascript 获取有关操作系统进程的任何信息.

No, you cannot get any information about OS processes from browser-based javascript running at normal privileges.

出于隐私和安全原因,浏览器 javascript 环境受到非常谨慎的保护并与您的系统隔离.如果一个人可以做您所要求的事情,那么互联网上的任何网页都可以准确地看到您正在运行的程序,并且可以将这些信息发送回他们自己的服务器.

The browser javascript environment is very carefully protected and isolated from your system for privacy and security reasons. If one could do what you were just asking for then any web page on the internet could see exactly what programs you were running and could send that info back to their own servers.

如果您愿意放松安全设置,某些版本的 IE 包含一些访问操作系统信息的功能(请参阅 此处 举例),但您应该意识到,如果您确实放松了安全设置,则可能会出现未知网页也可以访问此信息或在您的操作系统中执行操作.其他浏览器甚至不包含用于常规网页的此功能.由于只有一个浏览器支持此功能,并且只有在放宽安全限制的情况下,这绝不是一种通用的浏览器功能.

If you are willing to loosen up your security settings, some versions of IE contain some ability to access OS information (see here for an example), but you should realize that if you do loosen up your security settings, then unknown web pages may be able to access this info or take actions in your OS also. Other browsers don't even contain this capability for regular web pages. With only one browser supporting this and only when security restrictions are relaxed, this is not a general purpose browser capability in any way.

这篇关于Javascript 来获取正在运行的进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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