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