Click here to Skip to main content
Licence 
First Posted 29 Mar 2005
Views 69,392
Bookmarked 81 times

Disk Size Explorer

By | 29 Mar 2005 | Article
Disk size explorer scans local disks and displays the size of each directory and subdirectory. Selecting a tree node will display the size in a pie chart. Users can drill through the explorer using the treeview or pie chart.

Introduction

DiskSize is a program to scan a local drive and display the results in a treeview and on a 3D pie chart. It uses only the .NET Framework and Windows API functions, no third party products.

After scanning your local drive, the results are both displayed and cached in an XML file. Refreshing the entire drive or a single subdirectory will result in updating the cache. Subsequent loads will load from the cache.

The Explorer interface provides drill down functionality using either the treeview or the pie chart. A context menu is displayed which allows rescanning, exploring and opening directories and drives. This application uses a string resource file so it can be easily internationalized.

Points of interest

Demonstrated in this application are the following:

  • Iterating through the file system and storing the results in XML.
  • Saving and loading XML.
  • Binding a TreeView to XML.
  • Creating a 3D Pie chart with pie slice highlighting and selection.
  • Custom sorting by implementing the IComparable interface.
  • Implementing a drop-down list in a toolbar.
  • Binding lists to custom name-value pairs.
  • Internationalizing an application.

Background

I've wanted an application like this for some time. It is very helpful if disk space is limited and you want to quickly find out where your disk space has gone. I find myself now cheating and using the pie chart to navigate around my machine and then selecting open when I am at the directory I am looking for.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Troy Gleason

Web Developer

United States United States

Member

Troy Gleason has been programming for over 15 years. Programming languages include ASP, ASP.NET, C#, Java, JavaScript, and VB (in alphabetical order) as well as DHTML, XML, and related technologies. Troy is currently a principal at International Network Services (INS)

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralNot much to the article, but the application is nice PinmemberShane Story11:04 29 Dec '08  
GeneralDivide by zero Pinmemberheberts_tkd8:53 8 Mar '07  
GeneralAwsome!!!!! Pinmemberbreech14:11 15 Apr '06  
GeneralGreat!! Solved my problem... PinmemberWcohen2:42 20 May '05  
GeneralChanges for VS2005 PinmemberBitBanger15:57 12 Apr '05  
GeneralRe: Changes for VS2005 Pinmembernattro4:21 13 Apr '05  
QuestionZIP has no files...again? Pinmemberkutyafal3:22 8 Apr '05  
AnswerRe: ZIP has no files...again? Pinmembernattro4:20 11 Apr '05  
GeneralSuggestions PinmemberAlexander M.4:50 7 Apr '05  
GeneralRe: Suggestions Pinmembernattro4:25 11 Apr '05  
I know this is not really what you suggested. You will notice that if you have small directories that are less than 1/360 of the size of all the directories on that level; those small directories will not be displayed.
Generalsomething similar PinmemberRazvan Marcus19:34 29 Mar '05  
GeneralRe: something similar PinsitebuilderUwe Keim6:19 30 Mar '05  
GeneralRe: something similar Pinmembernattro10:13 6 Apr '05  
GeneralRe: something similar PinmemberRazvan Marcus20:36 6 Apr '05  
GeneralRe: something similar PinmemberPeter Schatz3:27 5 Jul '07  
Generalzip file have no files Pinmembersaurgarg14:02 29 Mar '05  
GeneralRe: zip file have no files Pinmembernattro14:34 29 Mar '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120528.1 | Last Updated 29 Mar 2005
Article Copyright 2005 by Troy Gleason
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid