The OS is Windows 8.1 - I am wondering if it is possible to install an ActiveX based wrapper to run an .exe file within the IE11 window. It would be ideal if it can be launched via a link on a webpage.
Asked
Active
Viewed 6,829 times
1 Answers
0
Yes, that is possible via javascript. Here's an example to a working solution:
In your case, you just need to make those lines of code a function and then create a hyperlink:
var executeShell = function(){
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\Windows\\notepad.exe";
oShell.ShellExecute(commandtoRun,"","","open","1");
};
<a href="#execute" onclick="executeShell();return false;">Run an exe</a>

Community
- 1
- 1

securecodeninja
- 2,497
- 3
- 16
- 22