How to run a executable file from a web page?

前端 未结 8 2128
暗喜
暗喜 2021-01-03 14:47

What I mean is, when user click a button on a webpage, a program which has already installed on his computer would be executed. I also need to pass some command line para

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 15:07

    You can register a protocol to your application so that navigating to a URL beginning with that scheme will launch your application and run a command.

    • [Windows](http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx)
    • Mac OS X
    • Gnome

提交回复
热议问题