如何在网页上单击一个按钮或者链接,然后调用本地的程序?

比如cmd,记事本之类的程序?
谢谢
---------------------------------------------------------------

http://expert.csdn.net/Expert/topic/1912/1912003.xml?temp=6.414431E-02
---------------------------------------------------------------

1<script>   
2var sh1=new ActiveXObject("wscript.shell")   
3sh1.run("notepad.exe")   
4</script>
1<script>   
2var sh2=new ActiveXObject("wscript.shell")   
3sh2.run("cmd.exe")   
4</script>

---------------------------------------------------------------

不要这样,理论上不可能允许你这样做,ie会阻止你
---------------------------------------------------------------

http://www.csdn.net/Develop/read_article.asp?id=8907

Published At
Categories with Web编程
Tagged with
comments powered by Disqus