JS调用本地EXE程序

<script type="text/javascript">
    function RunEXE(){
    var wsh = new ActiveXObject('WScript.Shell');
var command = "C:\\Progra~1\\B8DBSoft\\8DB.exe";
wsh.Run(command);
  }
</script>


<html>
<head>
<script type="text/javascript">
    function RunEXE(){
    var wsh = new ActiveXObject('WScript.Shell');
var aa = "E:\\Debug\\GisWallApp.exe";
wsh.run(aa);
  }
</script>
</head>
<body >
<a href="javascript:" onclick="RunEXE()">aaaaaaaa</a>
</body>
</html>

你可能感兴趣的:(C++,c,C#)