Simple VB code to know the date and time when a file was created or last modified.
Simple VB code to know the date and time when a file was created or last modified.
API Declarations
'Simple VB code to know the date and time when a file was created
'or last modified.
Rate Simple VB code to know the date and time when a file was created or last modified.
(1(1 Vote))
'or last modified.
Sub FileCreatedDateTime()
Dim filename As String
On Error GoTo errHandler
filename = InputBox("Please enter file name ?", "Input")
If Trim(filename) <> "" Then
MsgBox FileDateTime(filename)
Else
MsgBox "Invalid filename !!!", vbCritical + vbOKOnly, "Error!!!"
End If
errHandler:
If Err.Number <> 0 Then
MsgBox "Error Description :" & Err.Description & vbCrLf & " Error No : " & Err.Number, vbCritical + vbOKOnly, "Error!!!"
End If
End Sub
Simple VB code to know the date and time when a file was created or last modified. Comments
No comments yet — be the first to post one!
Post a Comment