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. Get FolderSize

Get FolderSize

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
6 Posts 5 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 How can i get folder size in vc++?Please help me

    H S _ I 4 Replies Last reply
    0
    • N NewVC

      Hi All How can i get folder size in vc++?Please help me

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

      This code displays the folder size information in the Explorer's Details view. [^]

      1 Reply Last reply
      0
      • N NewVC

        Hi All How can i get folder size in vc++?Please help me

        S Offline
        S Offline
        ShilpiP
        wrote on last edited by
        #3

        Click Here[^]:)

        Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

        1 Reply Last reply
        0
        • N NewVC

          Hi All How can i get folder size in vc++?Please help me

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          AFAIK, you get the folder size by finding the size of each file within the folder. It may be dependent on the File system in use You can use WIN32_FIND_DATA to get the file size and then sum all the individual sizes to get the folder size

          Some things seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

          1 Reply Last reply
          0
          • N NewVC

            Hi All How can i get folder size in vc++?Please help me

            I Offline
            I Offline
            Iain Clarke Warrior Programmer
            wrote on last edited by
            #5

            What do you mean by folder size? Do you mean the disk space taken by the folder itself? Very small - just a list of files and some extra stuff. Do you mean the total of the size of the files in the folder? Then you start having problems with file size. NTFS for example has alternate data streams (see: http://www.heysoft.de/nt/ntfs-ads.htm[^]) Does it include the size of all the directories beneath it? Do you follow reparse points? Your question is simple, but there are lots of sub questions you need to ask, which don't have easy answers. And those answers will vary with application. There's a reason you can't find a "GetDirectorySize" function... Iain.

            H 1 Reply Last reply
            0
            • I Iain Clarke Warrior Programmer

              What do you mean by folder size? Do you mean the disk space taken by the folder itself? Very small - just a list of files and some extra stuff. Do you mean the total of the size of the files in the folder? Then you start having problems with file size. NTFS for example has alternate data streams (see: http://www.heysoft.de/nt/ntfs-ads.htm[^]) Does it include the size of all the directories beneath it? Do you follow reparse points? Your question is simple, but there are lots of sub questions you need to ask, which don't have easy answers. And those answers will vary with application. There's a reason you can't find a "GetDirectorySize" function... Iain.

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

              Iain Clarke wrote:

              What do you mean by folder size?

              I saw like this question previous but I guess they need to total size of files,maybe.

              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