get size of picture folder??
C#
2
Posts
2
Posters
0
Views
1
Watching
-
hi all, I hope any one can help me in this problem... suppose i have a picture folder .. how i can to get the size of this folder in C# language. thanks
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"C:\"); System.IO.FileInfo[] files = dir.GetFiles(); long totalsize = 0; for (int i = 0; i <= files.GetUpperBound(0); i++) { totalsize = files[i].Length; } MessageBox.Show(totalsize.ToString()); Best of Luck Forever Developing