How to read the size of logical and physical files using C # api.
(new FileInfo(path).Length)
- actual size. Regarding disk size, I don't think there is an API to get it, but you can get it using the actual size and cluster size.
There is some calculation information here: http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/85bf76ac-a254-41d4-a3d7-e7803c8d9bc3