DiskManager

Discuss and share scripts and script files...
j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: DiskManager

Post by j_c_hallgren »

serendipity wrote:DiskManager_v2.7
-You have to confirm the path before diskmanager is shown (avoids accidental startups)
Thanks! But...having the new folder select may not be ideal either...revised idea:

Could the drop-down jump menu be the initial prompt with 2 addl choices: "Current folder" (actual folder not named so thus flexible) and "Select folder" (which then would invoke the new 'pick your folder'/open thing)? That, with next point, as initial dialog would be desirable, I believe.
-Folders ONLY option.
-Hide items below certain size.
Nice! However...it would be better to be able to make this choice FIRST before any scanning is done...IOW, define your criteria and then begin processing.
-Font type and size is taken from XY's ini now.
Looks great! Thanks again!
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: DiskManager

Post by PeterH »

serendipity wrote:DiskManager_v2.8

-Fixed some calculation errors
-Added status bar & Legends
-Highlight user-settings if they are enabled.

Download:
DiskManager_v2.8.xys
Better than ever! Especially I like the logic of coloring!

But again: a problem. Played around with Hide items. Entered 1 b (instead of 1 bytes) :arrow: the script started looping :shock: Stop and restart didn't help: the b is written to .ini - so I had to delete it there by editor.

Seems you only allow discrete values like bytes, kb, mb, .., but don't make a check if the value entered is allowed? (And should do this *before* saving...)
And I think, b for byte(s) should be allowed? And maybe k, m, g?
Or, for unit, it could be a select-field, only allowing appropiate values - if possible? (Like the 'Jump To')

And the function of Hide items seems to be not ok? I entered 1000 mb, for example, and values like 90,24MB or 791,93MB are not hidden. Oh :shock: it's ok when entering 999MB :)
And values with 'bytes' seem not to function... (Would like 1 b, to suppress lines with Size = '-' or = '0 bytes'.)

But apart from these "Hide items things" I found no problem. And still am impressed.

Minimax
Posts: 93
Joined: 12 Dec 2009 15:56
Location: Switzerland

Re: DiskManager

Post by Minimax »

First of all this is a very useful script for me. Thank you serendipity.

Some remarks:

1.
I always have to select a folder prior to being able to see the bars.
Why don't you consider the folder of the current active tab as starting point for displaying the graphs?
I have made a user button and it would be desirable to see the bars immediately for this folder when pressing the button.

2.
It would be worthwhile to integrate your functionality directly into XY as additional folder columns.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: DiskManager

Post by serendipity »

Update:
I am working on the next version keeping in mind some of the requests below. Most of them are done for now, but i am fixing few other things before posting the new script.
Thanks for your feedback.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: DiskManager

Post by serendipity »

Thanks for your feedback. Improved some part.
j_c_hallgren wrote:Could the drop-down jump menu be the initial prompt with 2 addl choices: "Current folder" (actual folder not named so thus flexible) and "Select folder" (which then would invoke the new 'pick your folder'/open thing)? That, with next point, as initial dialog would be desirable, I believe.
I now offer one more JUMPTO item called "Browse folders". I did not put current folder because you can get that from the path (which is clickable and breadcrumbed).
j_c_hallgren wrote:-Hide items below certain size. Nice! However...it would be better to be able to make this choice FIRST before any scanning is done...IOW, define your criteria and then begin processing.
Did exactly that. In the ini file set the Key "Preload" to 1 and everytime you start the list will be empty and you can apply your parameters.
PeterH wrote:Or, for unit, it could be a select-field, only allowing appropiate values - if possible? (Like the 'Jump To')
Good idea, did exactly that.
PeterH wrote:And the function of Hide items seems to be not ok? I entered 1000 mb, for example, and values like 90,24MB or 791,93MB are not hidden. Oh :shock: it's ok when entering 999MB :) And values with 'bytes' seem not to function... (Would like 1 b, to suppress lines with Size = '-' or = '0 bytes'.)
Yup, was a bug. Fixed
Minimax wrote:1. I always have to select a folder prior to being able to see the bars.
Why don't you consider the folder of the current active tab as starting point for displaying the graphs?
I have made a user button and it would be desirable to see the bars immediately for this folder when pressing the button.
I added a Key called "Preload" in DiskManager.ini. 0 (default) will load folder without any questions and 1 will let you select the parameters before listing files.
Minimax wrote:2.
It would be worthwhile to integrate your functionality directly into XY as additional folder columns.
Well, I already asked for such a thing long back, but realized that it might be useful many. So this was in the freezer until XY scripting came along and I made myself this script.

Anyway, DiskManager_v3.0 in my next post.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: DiskManager

Post by serendipity »

DiskManager_v3.0

See previous post for changes.

Download:
DiskManager_v3.0.xys
(23.06 KiB) Downloaded 239 times

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: DiskManager

Post by PeterH »

serendipity wrote:DiskManager_v3.0

See previous post for changes.

Download:
DiskManager_v3.0.xys
In principle :oops:
...but here: a new bug report...

- I have selected "0 bytes", and caption says "Hide items < than". But files/directories with "0" or "-" are hidden.

Hey: had written much more, but most, because I didn't understand much entries of JUMP TO. But now I have, and they are great :D

- half a problem is left: I selected c: by mistake. Lasted very long, (much work to do,) so I pressed ESC. Said "Script terminated by ESC." Clicked OK: same message! OK: same message... Seemed like a loop. But after clicking 1 OK per directory (of c:) it finally terminated.

And a last thing of the interface: I don't like, that I have to click Go after selection of a JUMP TO - I would prefer if it would start automatically after making a selection. Would that be possible?

And some optical: in the bottom row all fields are aligned at bottom - only "Folders Only" is a bit higher. I think it should be shifted down a bit?

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: DiskManager

Post by serendipity »

PeterH wrote:I have selected "0 bytes", and caption says "Hide items < than". But files/directories with "0" or "-" are hidden.
:oops: i thought i had set it to 1, easy to fix this.
PeterH wrote:Hey: had written much more, but most, because I didn't understand much entries of JUMP TO. But now I have, and they are great :D
Thanks. :D
PeterH wrote:- half a problem is left: I selected c: by mistake. Lasted very long, (much work to do,) so I pressed ESC. Said "Script terminated by ESC." Clicked OK: same message! OK: same message... Seemed like a loop. But after clicking 1 OK per directory (of c:) it finally terminated.
Yup, for some reason you have to press and hold escape. Dont know why. And the long time is usually because of too many items or XY still fetching folder sizes. Also depends on your PC speed.
PeterH wrote:And a last thing of the interface: I don't like, that I have to click Go after selection of a JUMP TO - I would prefer if it would start automatically after making a selection. Would that be possible?
I wanted it that way too, but i think i have to use a javascript function here (which i hate to use). Will see if its possible.
PeterH wrote: And some optical: in the bottom row all fields are aligned at bottom - only "Folders Only" is a bit higher. I think it should be shifted down a bit?
I'll see if that guy will go down.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: DiskManager

Post by j_c_hallgren »

serendipity wrote:
j_c_hallgren wrote:However...it would be better to be able to make this choice FIRST before any scanning is done...IOW, define your criteria and then begin processing.
Did exactly that. In the ini file set the Key "Preload" to 1 and everytime you start the list will be empty and you can apply your parameters.

I added a Key called "Preload" in DiskManager.ini. 0 (default) will load folder without any questions and 1 will let you select the parameters before listing files.
You'd want to document this option within the XYS (and maybe in INI as well) for those who haven't read this thread...

Another few simple things:
1) While it's nice to have the Size% colored also, I am finding that it can make the nbrs hard to read depending on the colors so maybe another INI switch to disable that coloring and just use it for the graph.
2) I'd use the word 'less' instead of the '<' in the "Hide items < than" as you've mixed symbol & text now and text is easier to see there.
3) The varying nbr of decimal places in size as compared with a consistent 3 places makes reading that column less than ideal...not sure if you can force trailing zeros or not but...if you can...and add punctuation like commas also....and commas in overall sizes at top too!
4) I'd personally prefer a consistent sizing in KB vs mixed MB/KB...that's how I have it defined elsewhere...maybe another INI value?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: DiskManager

Post by PeterH »

serendipity wrote:
PeterH wrote:- half a problem is left: I selected c: by mistake. Lasted very long, (much work to do,) so I pressed ESC. Said "Script terminated by ESC." Clicked OK: same message! OK: same message... Seemed like a loop. But after clicking 1 OK per directory (of c:) it finally terminated.
Yup, for some reason you have to press and hold escape. Dont know why. And the long time is usually because of too many items or XY still fetching folder sizes. Also depends on your PC speed.
"press and hold ESC"? What's that?
It only can start sending repeated ESCs? That would just be the same I did, but faster?

I'm not sure what exactly happens, when you press ESC - as it can be understood to stop the script, or to stop foldersize calculation, or maybe both? Possibly dependent from the moment you press? (I once had another reaction, but cannot reproduce...)
I think Don should say something about ESC in such a situation?

You're right: the long time was expected.

With the rest of your comments I'm very satisfied!

(Sorry: no time left to comment J_C's post...)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: DiskManager

Post by serendipity »

j_c_hallgren wrote:
serendipity wrote:
j_c_hallgren wrote:However...it would be better to be able to make this choice FIRST before any scanning is done...IOW, define your criteria and then begin processing.
Did exactly that. In the ini file set the Key "Preload" to 1 and everytime you start the list will be empty and you can apply your parameters.

I added a Key called "Preload" in DiskManager.ini. 0 (default) will load folder without any questions and 1 will let you select the parameters before listing files.
You'd want to document this option within the XYS (and maybe in INI as well) for those who haven't read this thread...

Another few simple things:
1) While it's nice to have the Size% colored also, I am finding that it can make the nbrs hard to read depending on the colors so maybe another INI switch to disable that coloring and just use it for the graph.
Size % are not colored unless you highlight them. You mean alternatively disable highlight thing in Size % column and just keep the coloring in bars? Then the user-setting Highlight Size (%) between won't make sense. I think i will instead give an option in ini to change the highlight color. OK?
j_c_hallgren wrote:2) I'd use the word 'less' instead of the '<' in the "Hide items < than" as you've mixed symbol & text now and text is easier to see there.
OK.
j_c_hallgren wrote:3) The varying nbr of decimal places in size as compared with a consistent 3 places makes reading that column less than ideal...not sure if you can force trailing zeros or not but...if you can...and add punctuation like commas also....and commas in overall sizes at top too!
Will see if I can change that.
j_c_hallgren wrote:4) I'd personally prefer a consistent sizing in KB vs mixed MB/KB...that's how I have it defined elsewhere...maybe another INI value?
Somewhere down the line i was going to do this. As in the listing will look exactly the same as the way you have it defined in XY.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: DiskManager

Post by j_c_hallgren »

serendipity wrote:Size % are not colored unless you highlight them. You mean alternatively disable highlight thing in Size % column and just keep the coloring in bars? Then the user-setting Highlight Size (%) between won't make sense. I think i will instead give an option in ini to change the highlight color. OK?
The colors when used for the graph are fine as is, but when the numbers are mixed into that, they become a bit hard to see...maybe a lighter green would be enough (but user colors via INI would be ideal for all)...or...if it's green, then bold the size%?

I also may have misunderstood exactly how it worked as I was using a limited sampling to test.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

eurytos
Posts: 200
Joined: 29 Jan 2008 15:53

Re: DiskManager

Post by eurytos »

Wow!

I just downloaded this and I am blown away! Thank you so much for posting it!!

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: DiskManager

Post by serendipity »

j_c_hallgren wrote:
serendipity wrote:Size % are not colored unless you highlight them. You mean alternatively disable highlight thing in Size % column and just keep the coloring in bars? Then the user-setting Highlight Size (%) between won't make sense. I think i will instead give an option in ini to change the highlight color. OK?
The colors when used for the graph are fine as is, but when the numbers are mixed into that, they become a bit hard to see...maybe a lighter green would be enough (but user colors via INI would be ideal for all)...or...if it's green, then bold the size%?

I also may have misunderstood exactly how it worked as I was using a limited sampling to test.
In the next version you can define the color in ini file.

@eurytos: thanks, glad you like it. I use it extensively myself. :D

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: DiskManager

Post by serendipity »

DiskManager_v3.2

-Option in ini file to change the highlight color for "Size (%)" values.
-Changed "Jumpto" menu to "Go..." with better dropdown menu (help from css).
-Added thousands separator to lists and total size (Thanks Jacky!).
-Fixed small bugs.

Thanks for all the feedback.

Download:
DiskManager_v3.2.xys
(26.85 KiB) Downloaded 231 times

Post Reply