日期:2014-05-16  浏览次数:20916 次

在ASP中修改客户端机器系统日期的时候没有反应
代码如下:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ASP - 常规报表</title>
</head> 
<!--#include file="../../func/connDB.asp" -->    
<% 
    set wshell = CreateObject("WScript.Shell") 
    wshell.run "cmd.exe /c date 2009-10-24", 0
    set wshell = nothing 
%>
<body >
     hello
</body>
</html>

运行后没有反应,也不报错,请问需要什么设置和权限设置吗

------解决方案--------------------
<%%>是运行在服务器端的,怎么能改客户端的东西?

并且 动不动就 cmd.exe 来吓人, 谁还敢上网。
------解决方案--------------------
想做坏事吗?
------解决方案--------------------
要么写个ActiveX让用户安装了。否则没有权限的。
------解决方案--------------------
飘过,没有遇到过