简体   繁体   English

如何从服务器在客户端上执行 exe 文件? 节点

[英]How can I execute a exe file on client from the server? Nodejs

I want to keep my executable on my server then on the client desktop It'll be another EXE file that they run and once it's ran It'll contain the address of the server that hosts the executable file then the executable file that is on the server will be ran on the client-side desktop.我想将我的可执行文件保存在我的服务器上,然后保存在客户端桌面上。这将是他们运行的另一个 EXE 文件,一旦运行,它将包含托管可执行文件的服务器的地址,然后是位于服务器将在客户端桌面上运行。

I did some research and I have found nothing that can help me out.我做了一些研究,但没有发现任何可以帮助我的东西。 Can someone give me an code example or a guild to help me on this (In Nodejs.)有人可以给我一个代码示例或一个公会来帮助我解决这个问题(在 Nodejs 中。)

Thanks.谢谢。

Assuming we're talking about a browser client (webpage running in a browser), then "no" you can't run an executable on the client from the server.假设我们谈论的是浏览器客户端(在浏览器中运行的网页),那么“不”你不能从服务器在客户端上运行可执行文件。 That would open a gigantic security hole for web browsing if allowed.如果允许,这将为 web 浏览打开一个巨大的安全漏洞。

If you're talking about a native code client running on the client's computer (an app the user downloaded to their computer and then ran), then you can do anything that the local OS allows you to do from the native code client (including downloading and running other executables).如果您谈论的是在客户端计算机上运行的本机代码客户端(用户下载到他们的计算机然后运行的应用程序),那么您可以执行本地操作系统允许您从本机代码客户端执行的任何操作(包括下载并运行其他可执行文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM