File Size

Use the FileInfo class. It accepts the full path to a file as its constructor, then you can use the Length property to get the size of the file in bytes. Divide this by 1024 and you have it in kilobytes.
 
Back
Top