Results 1 to 2 of 2

Thread: file size

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    How do I get the size of a file w/ VB?

  2. #2
    Guest
    This code will return the file size in bytes.

    Code:
    MsgBox FileLen("C:\myfile.exe")
    If you want to return the file size in KB, than divide by 1024.

    Code:
    MsgBox FileLen("C:\myfile.exe") / 1024

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