0

Hi. I was just wondering if there is a simple way to get the file size of a selected program. The thing is that if i select a word document or etc the file size should be 2.34MB not like 2355.2 in KB or B. If the file size is 1 GB it whould show the file size like how it does in the explorer.

Thanks

2
Contributors
3
Replies
13
Views
3 Years
Discussion Span
Last Post by Ahmed.C
0

Use the Length property of the FileInfo class. Click Here Convert this long number to your liking.

Yeap! Works! Thanks alot!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.