 |
|
 |
In truth, the article doesn't say a lot, but the application is nice and haven't it for free is also nice. I guess anyone wanting an explanation should read the code.
Anyhow, about the program, I do have a few suggestions:
1.) When the window is expanded, the controls should be anchored so that they expand also.
2.) Instead of KB,MB,GB, or in addition to it, maybe a smart mode would be
better. A smart mode shows it in bytes if <1024, in KB if less than
1MB, in MB if <1 GB, in TB if < 1 PB
Something like this would be a improvement
3.) There should be an option to group really small directories in an Other
category in the pie
I must say I was impressed that the time to scan was fairly quick.
All of this said, it is nice considering it is free. Thanks for the work!
Shane
|
|
|
|
 |
|
 |
Great job, I was actually working on my own version of this when I found yours.
I did find and isssue though when switching to "Display in M Bytes"
Private Function ConvertValuesToAngles(ByVal ValueList As Array) As Array
Total value was returned as 0 so of course I got the wonderful overflow error.
I just threw an empty try catch around it.
For Each obj As Object In ValueList
Try
Degree = Degree + (Convert.ToInt64(obj.ToString) / TotalValue) * 360
Catch ex As Exception
'Do nothing since I don't care about small directories.
End Try
RtnVal.Add(Degree)
Next
|
|
|
|
 |
|
 |
Dude this is a great work.
Keep it UP>
|
|
|
|
 |
|
 |
Solved my problem... of writing it myself... was on my task list for quit some time...
Very nice with the pie chart!
|
|
|
|
 |
|
 |
Nattro,
Great program. I converted this to VS2005, and had to make only one change. In form1.initializecomponent,
'
'frmDiskSize
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
...needed to be changed to:
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Also, if a drive has no files in the root directory, then we get a runtime error in form1.SliceToNode because the root node isn't added to the tree. In form1.AddTreeViewChildNodes, I changed:
'Create a file node
If FileDisplaySize > 0 Then
...to:
'Create a file node
If FileDisplaySize > 0 Or xml_node.ParentNode.Name = "root" Then
...and in form1.SetPieChartValues, I changed:
If FileSize > 0 Then
_PieChart.AddValue(_sr.GetString("Files"), FileSize)
...to:
If FileSize > 0 Or sPath = "" Then
_PieChart.AddValue(_sr.GetString("Files"), FileSize)
Thank you for the excellent sample and learning opportunity.
----------------
BitBanger
|
|
|
|
 |
|
|
 |
|
 |
It's 0 sized, no files. Can you check again please?
|
|
|
|
 |
|
 |
I have tested this on several machines and I am having no problems downloading the source. Perhaps you can clear your temporary internet files and download again.
|
|
|
|
 |
|
 |
I have a suggestion how to improve your application.
It is about the pie diagram, which also shows very small directories.
Most people will use this software to see what directories are wasting their disk space to get the chance to delete unnecessary files.
You should change the pie diagram, so that only directories with more than 5% are get listed and the smaller ones get combined to just one chunk.
Don't try it, just do it!
|
|
|
|
 |
|
 |
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.
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Yes, this and the next item are similar. But the point here is to show it done in VB.Net. It also demonstrates Graphing, graph interaction, recursion of the file system, custom sorting (sorting ASC and DESC on more than one field) and a few other useful things.
|
|
|
|
 |
|
 |
I agree, it's a very good example.
|
|
|
|
 |
|
|
 |
|
 |
downloaded zip files contain no files...
|
|
|
|
 |
|
 |
Sorry about that. I don't know what happened. The zip file has been updated and tested.
|
|
|
|
 |