Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function FsysDate(fname As String) As Date
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(fname)
FsysDate = f.DateCreated
End Function
Public Function FDate(fname As String) As Date
FDate = FileDateTime(fname)
End Function
Public Function ShowFileInfo(filespec As String, infotype As Long) As Variant
'This function uses the scripting runtime library object "FileSystemObject"
'to return details about a specified file.
'
'The available details are:
'1 Attributes
'2 DateCreated
'3 DateLastAccessed
'4 DateLastModified
'5 Drive
'6 name
'7 ParentFolder
'8 Path
'9 ShortName
'10 ShortPath
'11 Size
'12 type
Dim fs As FileSystemObject
Dim f As File
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
Select Case infotype
Case Is = 1 ' Attributes
ShowFileInfo = f.Attributes
Case Is = 2 ' DateCreated
ShowFileInfo = f.DateCreated
Case Is = 3 ' DateLastAccessed
ShowFileInfo = f.DateLastAccessed
Case Is = 4 ' DateLastModified
ShowFileInfo = f.DateLastModified
Case Is = 5 ' Drive
ShowFileInfo = f.Drive
Case Is = 6 ' name
ShowFileInfo = f.Name
Case Is = 7 ' parentfolder
ShowFileInfo = f.ParentFolder
Case Is = 8 ' path
ShowFileInfo = f.Path
Case Is = 9 ' shortname
ShowFileInfo = f.ShortName
Case Is = 10 ' shortpath
ShowFileInfo = f.ShortPath
Case Is = 11 ' size
ShowFileInfo = f.Size
Case Is = 12 ' type
ShowFileInfo = f.Type
End Select
End Function