Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. get size of picture folder??

get size of picture folder??

Scheduled Pinned Locked Moved C#
helpcsharpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • A Anonymous

      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

      N Offline
      N Offline
      Nicholas Cardi
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups