※ 引述《cole945 (躂躂..)》之銘言:
: <script type="text/javascript">
: function exec(path) {
: var wshell = new ActiveXObject("WScript.Shell");
: wshell.Run( path, 1, false );
: }
: </script>
: <a href="#"
: OnClick="JavaScript:exec('c:\\windows\\system32\\calc.exe');">
: calc
: </a>
: --
: 試試看吧, 應該只能在local執行(不能放在遠端internet上使用)
: 每一次第一次開啟頁面時會問你要不要執行ActiveX而已,
: 之後再按就會直接執行了~
您好,非常感謝你的回應
有個問題想請教一下
就是有關於目錄名稱的問題
像是 Program Files 這個目錄
我直接打這個目錄卻不能呼叫出來
請問該怎麼去宣告這種目錄呢?
煩請教導一下小弟
再下萬分感激...謝謝 ^^
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.163.157.91