You can't get that information using purely managed code. You need a bit of COM.

http://www.developerfusion.com/code/...ies-of-a-file/