How to check logical and physical file size on disk using C# file API -


how read logical , physical file size using c# api.

enter image description here

(new fileinfo(path).length) 

is actual size. size on disk, don't think there's api it, can using actual size, , cluster size.

there's info on calculation required here: http://social.msdn.microsoft.com/forums/en-us/vsexpressvcs/thread/85bf76ac-a254-41d4-a3d7-e7803c8d9bc3


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -