The Sandbox Thread

6 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

DiskSpace visualizer

Back to Forum: The Sandbox
  • User profile image

    The title says everything. You can navigate through your folders and you can see the allocated spaces on the hard disks.

    This little project contains some interesting solution/idea, worth to see:

    - Uses ThreadPool queue to get the information from the hard disks
    - Uses Avalon to visualize the data, concretely nested grids

    Later I'm going to describe these in detail if somebody is interested in.


    to run:
    1. .Net 2.0 Beta 2 runtime
    2. WinFX runtime Sept CTP

    to compile:
    1. VS2k5 Beta 2
    2. WinFX SDK Sept CTP


    It's precise now:

    - uses the allocated size of a file instead of the filesize. These are not the same. The allocated size is the sum of the allocated clusters belongs to that file, simply: allocated size = allocated clusters * cluster size

    - uses the CompressedFileSize of that file if that file is compressed.

    - shows the Unknown space if there are unreachable files/folders (permission denied) or other unreachable data ($mft)

    just a note, if it is not obvious:

    Click on the colored bars to navigate through the folders.


    New color scheme, looks like a rainbow now Cool

  • User profile image

    has been updated

  • User profile image

    Thank you for being such a great contributor to the Sandbox, Kazi.

  • User profile image

    Thanks Charles for the good words.

  • User profile image

    This is the illustration of the "nested grids" what this utility uses for displaying the colored bars:

    As you can see
    1) Every single grid has two columns only
    2) and contains rows as many as the childitems.
    3) The column widths are constant.
    4) The row heights are in proportion to the folder/file sizes.
    5) The column 0 of a grid contains colored bars only.
    6) The column 1 contains subgrids only.

    The above picture displays the following hierarchy:



    B = Bar
    G = Grid
    C = Column
    R = Row
    C0 = Column 0
    C1 =  Column 1
    R0 = Row 0
    R1 = Row 1

    Then the items have the following coordinates:

    B0 = G0.C0.R0
    G1 = G0.C1.R0
    B1 = G0.C1.R0.G1.C0.R0
    B2 = G0.C1.R0.G1.C0.R1
    G2 = G0.C1.R0.G1.C1.R0
    B3 = G0.C1.R0.G1.C1.R0.G2.C0.R0
    B4 = G0.C1.R0.G1.C1.R0.G2.C0.R1
    B5 = G0.C1.R0.G1.C1.R0.G2.C0.R2
    G3 = G0.C1.R0.G1.C1.R0.G2.C1.R1
    B6 = G0.C1.R0.G1.C1.R0.G2.C1.R1.G3.C0.R0
    B7 = G0.C1.R0.G1.C1.R0.G2.C1.R1.G3.C0.R1

    This utility displays the folder hierarchy the above way.
  • User profile image
    Alin Steglinski

    ok so in simple words for us non code nuts. this gadget type thing is going to create a visual representation of your hard drive and show like on a thermal scale blue being smallest files and red being the largest files. and can it run under XP. yea i still dont have dang vista

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.