This may be of interest to some of you so thought I'd send it in. Its a simple
script for displaying the size of directories. If you run it and specify a
directory as a parameter it will list all the subdirectories beneath that
directory along with the total size of the subdirectories. If there is a large
amount of data in a subdirectory this can take some time to run.
Clicking on a directory opens up that directory, you can then click the Show
Sizes checkbox to start scanning. Column sorting should work for both the
Folder and Size columns.
I've only been able to get single clicks recognised in ListViews. Does anyone
have any thoughts on how double clicks and right clicks could be used? I
suspect its just not possible with the current version. I've tried everything
I can think of (including trying to simulate double clicks by having a timer
reset a global variable which is set by the ItemClick event) but have had no
luck. The annoying thing about this is that you lose the ability to select via
the keyboard (KeyDown and SelectedItems work but as soon as an item is
highlighted the ItemClick event is fired off).
The other thing that would be good is a better way to work out the available
drives. Someone has sent me a TK widget to do this but I haven't had a chance
to look at it yet.
Hope this will prove useful to someone,
Kev.
foldersize.zip