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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Getting folder size

Getting folder size

Scheduled Pinned Locked Moved C / C++ / MFC
c++
4 Posts 3 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
    ashokvishnu
    wrote on last edited by
    #1

    Hi Gurus, I need to calculate the size of a folder and its subfolders. It would be very helpful if any of you can provide sample code or suggestions. Thanks C++beginer

    H D 2 Replies Last reply
    0
    • A ashokvishnu

      Hi Gurus, I need to calculate the size of a folder and its subfolders. It would be very helpful if any of you can provide sample code or suggestions. Thanks C++beginer

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See Here[^] maybe it is some helpful to you_**


      **_

      whitesky


      A 1 Reply Last reply
      0
      • H Hamid Taebi

        See Here[^] maybe it is some helpful to you_**


        **_

        whitesky


        A Offline
        A Offline
        ashokvishnu
        wrote on last edited by
        #3

        That was helpful. Thank you very much. C++beginer

        1 Reply Last reply
        0
        • A ashokvishnu

          Hi Gurus, I need to calculate the size of a folder and its subfolders. It would be very helpful if any of you can provide sample code or suggestions. Thanks C++beginer

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          If you are looking to roll your own solution, use the FindFirstFile()/FindNextFile() pair. The size of each file is contained in the WIN32_FIND_DATA structure.


          "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

          "Judge not by the eye but by the heart." - Native American Proverb

          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