|
-
Aug 19th, 2002, 01:03 AM
#1
Thread Starter
Addicted Member
Date/Time of a file
Hi ...
How to get the creation date and time of a certain file ???
Thanks anyway !!!!!
-
Aug 19th, 2002, 01:13 AM
#2
Thread Starter
Addicted Member
Anyone ??????
-
Aug 19th, 2002, 02:02 AM
#3
-
Aug 19th, 2002, 02:17 AM
#4
Hyperactive Member
Bit tetchy today Mr Laidlaw?
-
Aug 19th, 2002, 02:22 AM
#5
-
Aug 19th, 2002, 06:20 AM
#6
Frenzied Member
Actually, the FileDateTime() function does NOT return the CREATED date of the the item.... it returns the modified date instead. If Mimo really wants the Created date, you will need to use other functions. But if all you want is the date and time that is shown in Windows Explorer, then the Modified Date is the one you want, and FileDateTime is a good one to use.
For example:
[Highlight=VB]
Dim FSO, FSOf
Set FSO = CreateObject("Scripting.FileSystemObject")
thisFolder = "C:\Windows"
Set FSOf = FSO.GetFolder(thisFolder)
MsgBox FSOf.DateCreated
MsgBox FSOf.DateLastModified
[\vbcode]
-
Aug 19th, 2002, 06:22 AM
#7
VB Code:
Private Sub Command1_Click()
Dim MyDateTime As Variant
MyDateTime = FileDateTime("c:\MyFile.Exe")
MsgBox MyDateTime
End Sub
-
Aug 20th, 2002, 05:47 AM
#8
Thread Starter
Addicted Member
10x beachbum, but this function returns the modification date NOT the creation date 
10x anyway !!!
-
Aug 20th, 2002, 08:46 AM
#9
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|