Results 1 to 6 of 6

Thread: Finding File Size I

  1. #1

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Question

    What is the easiest way to find the size of a file on the HDD? Can I get the 'true' size or just the space occupied (i.e. dependant on block size)

  2. #2
    Megatron
    Guest
    Use the FileLen method.
    Code:
    iFileSize = FileLen("C:\MyFile.txt")

  3. #3
    Fanatic Member Illspirit's Avatar
    Join Date
    Mar 2001
    Location
    Blackpool, England
    Posts
    815
    You can use use the File System Object to get the size of a file or folder.

  4. #4

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Thanks

  5. #5
    Megatron
    Guest
    Originally posted by Illspirit
    You can use use the File System Object to get the size of a file or folder.
    Why use additional components when you don't need to?

  6. #6
    Fanatic Member Illspirit's Avatar
    Join Date
    Mar 2001
    Location
    Blackpool, England
    Posts
    815
    i dunno, i was only offering an alternative solution

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