function OpenExe() { var cmdShell = new ActiveXObject("WScript.Shell"); var myPath = "\"D:\\New Folder\\myExe.exe\"" //or any other file! cmdShell.Run(myPath , 1, true); //setting 1 will launch the exe in normal settings i.e. actual size of window over the web page. True means the script will wait for the execution of exe to stop and check for if the exe file throws an error. } <input type="button" id="btn1" önclick="OpenExe()" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)