|
-
Sep 28th, 2003, 09:30 PM
#1
Thread Starter
Lively Member
Obtain information about files on your system RESOLVED
I'm going to be making a properties form giving some basic info about a file that the user double clicks on in the filelist box. Things I want to obtain is the file size of the selected file and if possible the date that it was created. Is there a way I can do this?
Last edited by justastef; Oct 1st, 2003 at 12:06 PM.
-
Sep 28th, 2003, 09:36 PM
#2
The following will return the Last Modified Date/Time, like:
VB Code:
MsgBox FileDateTime("C:\temp\SomeFile.txt")
Bruce.
-
Sep 28th, 2003, 09:40 PM
#3
Date/Time Modified & Size (in Bytes) like:
VB Code:
Dim strFileName As String
strFileName = "C:\temp\SomeFile.txt"
MsgBox "Date and Time : " & FileDateTime(strFileName) & vbCrLf _
& "File Size is " & FileLen(strFileName) & " Bytes"
-
Sep 29th, 2003, 01:05 AM
#4
-= B u g S l a y e r =-
Viking interrupting this thread to say ....
Hppy B day Bruce !
-
Sep 29th, 2003, 06:05 PM
#5
Originally posted by peet
Viking interrupting this thread to say ....
Hppy B day Bruce !
Thanks mate
-
Sep 29th, 2003, 06:29 PM
#6
-
Sep 30th, 2003, 04:28 AM
#7
Hyperactive Member
hi,
using scripting.filesystemobject u can solve u r problem.
-
Sep 30th, 2003, 04:38 PM
#8
Originally posted by jayakumar
hi,
using scripting.filesystemobject u can solve u r problem.
Certainly one way to obtain file info, but if you can do it without the overhead of the FSO, then why would you 
manavo11: Thankyou
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
|