mercredi 25 avril 2018

How to run exe in html?

I try to run C:\Windows\System32\calc.exe using ActiveX in Windows 10, It dosen't work. Recent Windows 10 isn't support ActiveX maybe I think.

In case of Plugin, NPAPI is disabled and PPAPI isn't support Run *.exe only File I/O.

I should to run installed client program by web.

Is there a way to run *.exe without ActiveX or Plugin like NPAPI/PPAPI? Or, Why I can't use ActiveX in Widnow10?

<!DOCTYPE html>
<html>
<head>
    <script>
        function myGame(fname) {
            var WshShell = new ActiveXObject("WScript.Shell");
            WshShell.Run(fname);
        }
    </script>
</head>
<body>
    <a href="javascript:myGame('C:\\WINDOWS\\System32\\calc.exe)">Run a calculator</a><br>
</body>
</html>




Aucun commentaire:

Enregistrer un commentaire