Run EXE from client side

后端 未结 7 1237
醉梦人生
醉梦人生 2020-12-03 23:58

I need run an exe file from client side. The Exe file exist in my C:\\ Directory. I need run this exe file from my WEB site.

How can I co this?

7条回答
  •  佛祖请我去吃肉
    2020-12-04 00:26

    Actually, I'm ashamed to admit that I have implemented this in response to a specific requirement.

    The way to do it is to make the user run an installer for your app on their machine, which implies that they agree to run your app. The installer associates a specific file extension with your app or a "helper" app, and the web site sends a file with that extension when it wants to start the app. The user has to interact at that point, opening the file with "YourHelperApp".

    You can also do it with no UI intervention if you use a signed browser plugin, which is allowed to do basically anything, but of course that's browser- and platform-specific.

提交回复
热议问题