Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

windows file sizes

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you right-click on a file in Windows (i'm using Win98) and go down to the "Properties" tab, a dialog box appears with one of the pieces of information in the dialog box being the file's size.
I did this for an archive file and received the following file size information:
Size: 23.9KB (24,565 bytes), 24,567 bytes used
Does anyone know what those three values represent and which is the actual file size. It seemed strange that the KB and byte values didn't match up.
Thanks for your help!
Greg
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Size: 23.9KB (24,565 bytes), 24,567 bytes used

KB is not bytes/1000 but bytes/1024 (You'll probably recognize 1024 as a multiple of 16). I don't know about the two extra "bytes used", maybe a file header or something?
 
Greg Schwartz
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I appreciate your reply. I forgot that it was divided by 1024 instead of 1000.
Thanks for your help.
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Besides, if you use Win NT (or 2k), the cluster size will be 4KB, so the size file actually occupies on the disk will be in multiples of 4 KB.
- Manish
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic