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 / C++ / MFC
  4. Folder Size

Folder Size

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelp
3 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.
  • N Offline
    N Offline
    NewVC
    wrote on last edited by
    #1

    Hi All There is any API which will give folder size like _stat function.I am try to get size without open folder.Plz help me

    I T 2 Replies Last reply
    0
    • N NewVC

      Hi All There is any API which will give folder size like _stat function.I am try to get size without open folder.Plz help me

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      I guess no such function. When we use file-manager to detect size of a folder, if the folder is in huge size, we can see file-manager detects size of files one by one and add them togather. So, you may do same thing programmatically to find total size of files under the folder.

      1 Reply Last reply
      0
      • N NewVC

        Hi All There is any API which will give folder size like _stat function.I am try to get size without open folder.Plz help me

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        there is no direct api for retrieving folder size, but you can do that programmatically by using CFileFind and CFile::GetStatus

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

        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