<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Untitled Page</title>
    <script type="text/javascript" language="javascript">
        function callExe() {
            var file = "C:\\Windows\\system32\\notepad.exe";
            var shellObj = new ActiveXObject("Wscript.Shell");
            alert(file);
            shellObj.Run(file);
            shellObj = null;
        } 
    </script>
</head>
<body>
    <input id="Button2" type="button" value="调用" onclick="callExe();" />
</body>
</html>

 

相关文章:

  • 2021-09-01
  • 2021-12-16
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-12-05
猜你喜欢
  • 2021-05-31
  • 2021-08-21
  • 2022-12-23
  • 2021-11-24
  • 2021-08-30
  • 2022-01-16
相关资源
相似解决方案