通过读取文件的各日期,防止修改系统时间来避开试用期的程序。
同时也能一定限度的防止通过备份文件的方式来避开试用期。
未做严格测试:
private sub form_load()
dim dd as string
dd = currentproject.path
if right(dd, 1) <> "\" then dd = dd & "\"
showfileaccessinfo dd & currentproject.name
end sub
sub showfileaccessinfo(filespec)
dim fs, f, s, aa, bb, cc
set fs = createobject("scripting.filesystemobject")
set f = fs.getfile(filespec)
aa = f.datecreated '建立日期
bb = f.datelastaccessed '最后访问日期
cc = f.datelastmodified '最后更新日期
if aa > bb then goto ww:
if aa > cc then goto ww:
if bb > cc then goto ww:
if cc > date then goto ww:
exit sub
ww:
msgbox "请不要修改系统日期!": quit
end sub
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器