ASP.net 调用客户端的应用程序
<Html>
<body>
<SCRIPT LANGUAGE=javascript>
<!--
function executeCommands()
{
var wsh = new ActiveXObject('WScript.Shell');
wsh.Run("notepad.exe d:\\help.txt");
}
//-->
</SCRIPT>
<a href="javascript:executeCommands()">记事本</a>
<a href="javascript:var a=new ActiveXObject('wscript.shell');var cmd='calc.exe ';a.run(cmd)">计算器</a>
</body>
</html>
<body>
<SCRIPT LANGUAGE=javascript>
<!--
function executeCommands()
{
var wsh = new ActiveXObject('WScript.Shell');
wsh.Run("notepad.exe d:\\help.txt");
}
//-->
</SCRIPT>
<a href="javascript:executeCommands()">记事本</a>
<a href="javascript:var a=new ActiveXObject('wscript.shell');var cmd='calc.exe ';a.run(cmd)">计算器</a>
</body>
</html>