|
Function ShowFileAccessInfo(filespec)
filespec=thisworkbook.fullname
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
s = UCase(filespec) & vbCrLf
s = s & "Created: " & f.DateCreated & vbCrLf
s = s & "Last Accessed: " & f.DateLastAccessed & vbCrLf
s = s & "Last Modified: " & f.DateLastModified & vbCrLf
MsgBox s, 0, "File Access Info"
End Function
这个FSO也好象取不到修改者信息。但http://www.microsoft.com/china/t ... scripts/sg0305.mspx
提到的这个DsoFile却可以,但需下载文件
http://www.microsoft.com/downloa ... &DisplayLang=en |
|