Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to determine directory size?  (Read 9137 times)

0 Members and 1 Guest are viewing this topic.

nubia

    Topic Starter


    Rookie

    How to determine directory size?
    « on: February 17, 2009, 09:12:09 PM »
    I've looked at all the Dos Commands at http://www.computerhope.com/overview.htm
    and don't seem to be able to find out how to get the size of a Windows directory.
    Does anyone know if this is possible?
    -nubia

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: How to determine directory size?
    « Reply #1 on: February 17, 2009, 09:20:11 PM »
    dir

    the size is listed at the bottom of the listing.
    I was trying to dereference Null Pointers before it was cool.

    nubia

      Topic Starter


      Rookie

      Re: How to determine directory size?
      « Reply #2 on: February 17, 2009, 09:43:10 PM »
      I see at the bottom what it says but this in no way matches what I get when I use Windows explorer and click properties for the selected folder. In the case of C:/Program Files typing 'Dir' at the command prompt I get
      53 files 5,571,605 bytes
      108 dirs 17,156,722,688 bytes free

      And in Windows Explorer I get:
      5.65 GB (
      Contains 61,614 files 6,636 folders.
      -What Gives??

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: How to determine directory size?
      « Reply #3 on: February 17, 2009, 09:53:43 PM »
      I don't understand oll this DOS stuff,
      So I go for the hardware solution.

      You get a new blank Hard drive.
      Notice how mush space is taken and how much is available.

      Now copy the whole directory to the new drive.
      Now notice again how much space is use.  :o
      From that you can deduce how big the directory is.

      Now this, Isn't that a lot easier than
      trying to get an answer from these guys?



      nubia

        Topic Starter


        Rookie

        Re: How to determine directory size?
        « Reply #4 on: February 17, 2009, 10:03:09 PM »
        Ha Ha very funny-not really..but seriously though..

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: How to determine directory size?
        « Reply #5 on: February 17, 2009, 10:15:30 PM »
        Folder Size. Folder properties.

        Does that help?

        Broni


          Mastermind
        • Kraków my love :)
        • Thanked: 614
          • Computer Help Forum
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 8
        Re: How to determine directory size?
        « Reply #6 on: February 17, 2009, 10:27:34 PM »
        5,571,605 bytes~=5.65 GB
        Where is the problem?

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: How to determine directory size?
        « Reply #7 on: February 17, 2009, 10:50:07 PM »
        5,571,605 bytes~=5.65 GB
        Where is the problem?

        thats 5 MB silly.


        try Dir /S instead.
        I was trying to dereference Null Pointers before it was cool.

        Broni


          Mastermind
        • Kraków my love :)
        • Thanked: 614
          • Computer Help Forum
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 8
        Re: How to determine directory size?
        « Reply #8 on: February 17, 2009, 10:54:29 PM »
        Quote
        thats 5 MB silly.
        Bed time, I guess ;D

        BatchRocks



          Hopeful
        • Thanked: 3
          Re: How to determine directory size?
          « Reply #9 on: February 18, 2009, 05:10:33 PM »
          Quote
          thats 5 MB silly.
          Bed time, I guess ;D

          Yep.

          GuruGary



            Adviser
            Re: How to determine directory size?
            « Reply #10 on: February 18, 2009, 05:24:58 PM »
            Try
            Code: [Select]
            dir C:\Windows /a /swhich should match either very close, or exactly ... depending on what Windows is doing and how close together you run the DIR and the Explorer Properties.

            nubia

              Topic Starter


              Rookie

              Re: How to determine directory size?
              « Reply #11 on: February 18, 2009, 08:02:12 PM »
              Whew! I did the Dir /s on C:/Program Files and it went on forever! (Well several minutes anyway!)
              But yes the results were right on.
              Thank you all.
              N.

              BatchRocks



                Hopeful
              • Thanked: 3
                Re: How to determine directory size?
                « Reply #12 on: February 19, 2009, 08:26:04 AM »
                Whew! I did the Dir /s on C:/Program Files and it went on forever! (Well several minutes anyway!)
                But yes the results were right on.
                Thank you all.
                N.

                Happened to me too ^_^.

                BC_Programmer


                  Mastermind
                • Typing is no substitute for thinking.
                • Thanked: 1140
                  • Yes
                  • Yes
                  • BC-Programming.com
                • Certifications: List
                • Computer: Specs
                • Experience: Beginner
                • OS: Windows 11
                Re: How to determine directory size?
                « Reply #13 on: February 19, 2009, 01:12:36 PM »
                If it's a NTFS drive you can use

                Code: [Select]
                FSUTIL VOLUME DISKFREE C:
                I was trying to dereference Null Pointers before it was cool.

                GuruGary



                  Adviser
                  Re: How to determine directory size?
                  « Reply #14 on: February 19, 2009, 02:18:46 PM »
                  But FSUTIL won't tell you a directory size.