admin管理员组文章数量:1431997
I want to enable the user to open a certain software on his desktop when he clicks the link on the browser, as shown on the image above.
I am a ware of the security issue, and also I am assuming the user has this software installed on his machine. What is the best way to achieve this?
OS: windows.
I want to enable the user to open a certain software on his desktop when he clicks the link on the browser, as shown on the image above.
I am a ware of the security issue, and also I am assuming the user has this software installed on his machine. What is the best way to achieve this?
OS: windows.
Share Improve this question edited Sep 19, 2019 at 15:10 Rahman Saleh asked Sep 18, 2019 at 12:26 Rahman SalehRahman Saleh 1,1182 gold badges14 silver badges20 bronze badges 3- 1 Possible duplicate of How to launch an application from a browser? – fredrik Commented Sep 18, 2019 at 12:29
- 1 It is possible in HTA (Win / IE - unrestricted "web" page) I am using this for AutoIt scripts for example var shell = new ActiveXObject("Wscript.Shell"); var basePath = ".\\"; shell.run(basePath + "AutoIt\\AutoIt3_x64.exe \"" + basePath + n + '"'); But of course does not work in mon browser (security limitations). In short rename htm(l) to hta and you can do way more. Or also using frameworks like Cordova(?) you can do a bit more than in mon pages. – Jan Commented Sep 18, 2019 at 12:47
- 1 Yeah those solutions from 10 year old threads are probably not going to work anymore. I remember the glory days of .hta viruses masked as .jpg on certain image boards years ago :) – bdbdbd Commented Sep 18, 2019 at 15:31
1 Answer
Reset to default 2If it's only on your own machine you could consider registering an URI scheme, so instead of having it link to http://something you use something like openMyApp://blabla
https://learn.microsoft./en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767914(v=vs.85)?redirectedfrom=MSDN
本文标签: javascriptOpen a desktop app by clicking on a link on the browserStack Overflow
版权声明:本文标题:javascript - Open a desktop app by clicking on a link on the browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745582189a2664684.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论