user20188099
user20188099

Reputation:

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.

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.)

Thanks.

Upvotes: 1

Views: 596

Answers (1)

jfriend00
jfriend00

Reputation: 707158

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.

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).

Upvotes: 1

Related Questions