Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
show 1 more comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.