Results 1 to 4 of 4

Thread: File size

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Atlanta, GA
    Posts
    75

    Post

    How can I determine the size of a file?

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Posts
    101

    Post

    Hi Janitor.

    Here's how to do it:

    Code:
    dim stFileSize as string
    
    stFileSize = FileLen("c:\windows\desktop\yourfile.txt")
    All the best.

    Chris

  3. #3
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308

    Post

    Hi, Janitor.


    Dim MySize
    MySize = FileLen("TESTFILE") ' Returns file length (bytes).

    Larisa

  4. #4
    Lively Member
    Join Date
    May 1999
    Location
    Vancouver, BC, Canada
    Posts
    84

    Post

    Function FileLen(PathName As String) As Long Member of VBA.FileSystem
    Returns the length of a file in bytes

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