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
    Kazi

    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.



    Requirements:

    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


    EDIT1

    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.

    EDIT2

    New color scheme, looks like a rainbow now Cool

  • User profile image
    Kazi

    has been updated

  • User profile image
    Charles

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

  • User profile image
    Kazi

    Thanks Charles for the good words.

  • User profile image
    Kazi

    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:

    B0
    B0.B1
    B0.B1.B3
    B0.B1.B4
    B0.B1.B4.B6
    B0.B1.B4.B7
    B0.B1.B5
    B0.B2

    IF

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


    Then the items have the following coordinates:

    G0
    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.