0

I know it's not secure but I want to open an exe file (on the client) when I click a link on a web page. I cannot change the html/css/php/javascript of this website. I only have a UI where I can add a link. The exe file is on a shared drive that all clients have access to. This should only work on a local network. This should work on windows and in all browsers

what I've tried:

I have created a website in between the webpage and the file that should be opened. I then tried using html/php/javascript exec()/shell_exec and system() in php to get this working, but it didn't work

The exe file I would like to open resembles a browser but only local websites are present. In the cmd the command looks like "N:...\Browser.exe" http://192.168.1.1/start.html. This will then open the link 192.168.1.1/start.html in the "special" browser.

This should not be done through this intermediary website. Any other suggestions are always welcome

  • In Windows, it's possible to do this by [registering a custom protocol](https://stackoverflow.com/questions/80650/how-do-i-register-a-custom-url-protocol-in-windows) for the URL. – Anderson Green Apr 12 '22 at 18:06

0 Answers0