Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The size info in default windows explorer is not accurate, for example, a .txt with a single character is 1 KB.

How can I get the exact file size in Byte(not the default KB)?

share|improve this question
up vote 1 down vote accepted

If you right click on the file, select Properties and look at the Size (not Size on Disk), it will show you the exact size as 1 Byte.

share|improve this answer
    
I see it now,but where's the file name restored? – win Sep 22 '10 at 8:59
1  
@win The name of the file, along with most other meta-data, is kept in the Master File Table. – DMA57361 Sep 22 '10 at 9:01
    
You can also use MS-DOS command to view the exact sizes. Open command line window (Start > Run and type cmd.exe and hit Enter), navigate to the folder your file resides in and type dir. You will see 1 next to your text file which is displayed in Bytes. – Mehper C. Palavuzlar Sep 22 '10 at 9:01
    
Where's the Master File Table located? – win Sep 22 '10 at 9:02
2  
@win - The file name is not a property of the file. It's a property of the filesystem. – Nifle Sep 22 '10 at 9:12

Hit Alt + Enter to show Properties (or right-click). Look at values of Size: and Size on disk:

Also Details tab of Properties provides this info.

share|improve this answer
    
It seems file name is not included in Size,then where is it restored? – win Sep 22 '10 at 8:59
    
All file metadata (some of which you can see in file properties) including file name are handled by your filesystem (NTFS, FAT32). – Casual Coder Sep 22 '10 at 9:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .