Results 1 to 3 of 3

Thread: Check file size

  1. #1

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

    Check file size

    I need to know a file's size. I tried with new FileInfo(filename).Length but it doesnt return me the right result. I also tried multiplying it by 1.024 but I still doesn't return the right value. I need to get the correct file size because I need to know it's size to send it thru my irc bot through Irc

    (as side note the value is quite similar to the real one, but i need the REAL one)

    Thanks in advance
    Last edited by PT Exorcist; Mar 15th, 2004 at 08:01 AM.
    \m/\m/

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Are you storing the returned value in a variable ? I worked on that and does return the exact file size though .

  3. #3
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Are you sure it's .Length is not returning the correct file size? What are you comparing it against? It seems to work fine for me.

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