-3

I have to run an executable on click on a link. The executable can be on the server or on the client machine and is already installed. Can I do that using html, javascript or asp? I'll use this on a touchscreen monitor with the browser in fullscreen mode. From the page the user can open some exe.

Magic AndWebDev
  • 137
  • 1
  • 5
  • 16
  • If you're running it on the server then it depends on the executable. For example every time you view a PHP or a Perl page hosted on IIS you run an .exe file. Some executables can only be run if you have desktop access – John Nov 26 '13 at 10:58
  • There are multiple ways to start an application on the server but it won't show on the client (but you can get a response after the app terminated). Is that what you want? – John Nov 27 '13 at 11:10

2 Answers2

2

If you have full access to the machine, you can made some registry entries to make custom hyperlinks protocols, like Skype and other apps does. This way works with all browsers.

You can get more info here

Other ways on this post and another post

Community
  • 1
  • 1
rkawano
  • 2,443
  • 22
  • 22
0
  1. All client machine has to install this executable in the same location
  2. Only works for IE If this is achievable, you can modify below code to specify your exe path.

    Application Executer function RunFile() { WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run("c:/windows/system32/notepad.exe", 1, false); }

Godinall
  • 2,280
  • 1
  • 13
  • 18
  • The function has to be called only on a machine so I can prepar it how I want. Is there a method to use the same operation with Google Chrome? – Magic AndWebDev Nov 25 '13 at 12:33
  • You can if you add the MIME type to the registry and bind the executable with open method. – Godinall Nov 25 '13 at 13:08