Skip to content

有害部落格同好會

2011/02/28 / JavaScript, VBScript

以 javascript 執行 exe 檔

使用 javascript 呼叫 client 端可執行的 exe 檔

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script type="text/javascript">
<!--
//var executableFullPath = 'F:\ZK\DownLoadFile\YodaoDict.exe';
var executableFullPath = 'notepad.exe d:\test.htm';
 
try
{
var shellActiveXObject = new ActiveXObject("WScript.Shell");
 
if ( !shellActiveXObject )
{
alert('Could not get reference to WScript.Shell');
}
 
shellActiveXObject.Run(executableFullPath, 1, false);
shellActiveXObject = null;
}
catch (errorObject)
{
alert('Error:n' + errorObject.message);
}
// -->
</script>

<script type="text/javascript"> <!-- //var executableFullPath = 'F:\ZK\DownLoadFile\YodaoDict.exe'; var executableFullPath = 'notepad.exe d:\test.htm'; try { var shellActiveXObject = new ActiveXObject("WScript.Shell"); if ( !shellActiveXObject ) { alert('Could not get reference to WScript.Shell'); } shellActiveXObject.Run(executableFullPath, 1, false); shellActiveXObject = null; } catch (errorObject) { alert('Error:n' + errorObject.message); } // --> </script>

Post navigation

Previous Post:

Windows 7 如何刪除 Windows.old 文件夾

Next Post:

2010年春節倒數計時

分類

  • 新奇有趣の搶先報導
    • Raspberry Pi
    • 手機相關
    • 推薦軟體
    • 新鮮有趣
    • 生活資訊
  • 想破腦袋の程式技巧
    • Oracle EBS
    • Database
    • Excel, VBA
    • php
    • JavaScript, VBScript
    • VS.NET
    • Others
    • Windows
    • SAP
  • 撩動心弦の短文小品
  • 聚沙成塔の理財守則
  • 不可不知の職場實錄
  • 剎那永恆の生活翦影

近期文章

  • 受保護的內容: 如何透過Personalize功能呼叫另一form來回傳值
  • Win10 / 8 / 7 無法安裝 SSD
  • 受保護的內容: 樹梅派+遠端連線
  • EBS R12 取得客戶的phone, email, URL資料
  • 受保護的內容: 管控Workflow Administrator Role

友站

  • Masaya396's 協奏曲
  • 老塗的咁仔店

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

Tag Cloud

你目前使用的瀏覽器不支援 HTML5 的 CANVAS 標籤。

  • SQL
  • SAP
  • EBS 11.5.10
  • Oracle EBS
  • LDAP
  • 感情
  • Oracle DB
  • VB.Net
  • excel
  • HTC
  • EBS 12.1.3
  • javascript
  • VB6
  • VBA
  • php
  • CSS
  • WinXP
  • MySql
  • Win7
  • 管理
© 2025 有害部落格同好會 - Powered by SimplyNews