Results 1 to 3 of 3

Thread: how to get the file size?

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    how to get the file size?

    i must be getting stupid but..how can i do it? i've searched in IO.File, IO.Pah, IO.Directory and i dont seem to find a way to do it..
    \m/\m/

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This gets file size in bytes .
    VB Code:
    1. Dim fil As New IO.FileInfo("c:\aa.txt")
    2.         Dim siz As Long
    3.         siz = fil.Length()
    4.  MessageBox.Show(siz)

  3. #3

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    tks
    \m/\m/

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