you shouldn't do that, since exec runs on the server side, if the ActiveX security settings are low enough on the client side, try<script language="javascript">
var shell = new ActiveXObject("WScript.Shell");
shell.run ("%WINDIR%\\system32\\Freecell.exe");
</script>
var shell = new ActiveXObject("WScript.Shell");
shell.run ("%WINDIR%\\system32\\Freecell.exe");
</script>
解决方案 »
- 遇到一奇怪问题,请大家帮助一下
- 连接数据库报错
- php 站内搜索 模糊匹配怎么实现
- 远程打开ftp上的文件
- php提交表单中如何获取button的值?
- 帮我看一下转义问题.谢谢了
- PHP 5.4.14 and PHP 5.3.24 released!
- 如何循环的读出这样的数据
- \u6700\u65b0\u516c\u544aabc<br> 如何转成 最新公告abc<br>
- 急需帮助----为什么总报错!!!
- 各位老大,小弟有一初级问题想问……
- 大家好,谁编写过用MYSQL数据存储图片的程序,我的程序可以存储图片,但是取出是乱码,大家不妨来看一看。小弟在线等待。
<script language="javascript">
var shell = new ActiveXObject("WScript.Shell");
shell.run ("WINDOWS\\Freecell.exe");
</script>
IE报错:Autoation不能创建对象!
为什么??????
<?
exec("c:\windows\Freecell.exe");
?>
var shell = new ActiveXObject("WScript.Shell");
shell.run ("Freecell.exe");
</script>