- <script type="text/javascript">
- <!--
- function runExecutable()
- {
- var executableFullPath = 'F://ZK//DownLoadFile//YodaoDict.exe';
- try
- {
- var shellActiveXObject = new ActiveXObject("WScript.Shell");
- if ( !shellActiveXObject )
- {
- alert('Could not get reference to WScript.Shell');
- return;
- }
- shellActiveXObject.Run(executableFullPath, 1, false);
- shellActiveXObject = null;
- }
- catch (errorObject)
- {
- alert('Error:/n' + errorObject.message);
- }
- }
- // -->
- </script>
- <input type="button" οnclick="runExecutable()" value="打开客户端程序">
JavaScript打开客户端exe文件
最新推荐文章于 2024-07-27 03:31:28 发布