Results 1 to 3 of 3

Thread: How do you find the size of a file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Wellington NZ
    Posts
    153

    Talking

    hi there i have a database file and i need to find the size of it, any idea how you do it?

    Also any idea if you can access any other usefull properties of a file like when it was created, modified?

    Rohan

  2. #2
    New Member
    Join Date
    Jul 2000
    Posts
    12

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    'file information using File Scripting Object (fso)
    'date created...date last modified...date last accessed
    'http:\\webhome.globalserve.net/enyaw
    
     Private Sub Form_Load()
     
     Dim sFile As String
     sFile = "c:\my documents\my file.txt"
     
     Dim fso As Object
     Set fso = CreateObject("Scripting.FileSystemObject")
    
     MsgBox "The file " & sFile & " was created on: " & fso.GetFile(sFile).DateCreated
     MsgBox "Last modification to file: " & fso.GetFile(sFile).DateLastModified
     MsgBox "Last date file was accessed: " & fso.GetFile(sFile).DateLastAccessed
    
     Unload Me
    
    End Sub
    
    msgbox Filelen(mypath\mydb.mdb")
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width