Suggestion for 'Sync Select...' feature: select by size.
Much, much needed for quick comparison for massive folder duplicates at once and further easy deletion.
Thanks.
Select by Size
Re: Select by Size
Anyone able to provide an alternative for this?
'show folder sizes' can/must be temporally on for this.
'show folder sizes' can/must be temporally on for this.
Power-hungry user!!!
Re: Select by Size
how exactly is select by size supposed to work?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Select by Size
Code: Select all
"Sync Select Size"
$sizes = FormatList(Report('{Size};', 1), 'dents', ';');
Focus 'PI';
SelFilter($sizes,, 'Size');
Note though that SelFilter is checking the displayed sizes which means:
1) Both panes need to use the same format to get a match.
2) Due to rounding and converting between different units there is a chance it will not be 100% accurate - switching to 'Bytes' or 'Raw' in both panes can work around this.
Another option would be to perform the comparison within the script like so:
Code: Select all
"Sync Select Size 2"
$sizes = Report("{Size RAW};*<crlf>", 1);
$sizes = FormatList($sizes, 'dents', <crlf>);
$ip = ListPane('i', '*', 0, '|');
$ipSizes = Report("{Size RAW};{FullName}<crlf>", $ip);
$matches = FormatList($ipSizes, 'f', <crlf>, $sizes);
$matches = RegexReplace($matches, '^\d+;');
SelectItems $matches, '2', 1, 'n', 'i';
Re: Select by Size
Hello, TheQwerty. Many thanks for those.
I can't manage the second one to work...?
$ipSizes = Report("{Size RAW};{FullName}<crlf>", $ip);
The SIZEs are not being reported here for the listed items at $ip.
I can't manage the second one to work...?
$ipSizes = Report("{Size RAW};{FullName}<crlf>", $ip);
The SIZEs are not being reported here for the listed items at $ip.
Power-hungry user!!!
Re: Select by Size
And what files do you have in the inactive pane? The Qwerty's script works fine here...
One of my scripts helped you out? Please donate via Paypal
Re: Select by Size
The same scheme that works with the first script, highend: a test pane at the same location as p1, sizes displayed in bytes, same columns. Thanks for joining in.
Power-hungry user!!!
Re: Select by Size
And you have items selected in the active pane?
One of my scripts helped you out? Please donate via Paypal
Re: Select by Size
yes.
tried everything: all, some, none, messing with the code, stepping.
v 17.00.
tried everything: all, some, none, messing with the code, stepping.
v 17.00.
Power-hungry user!!!
Re: Select by Size
Then show the output of the two steps:
e.g. as a .gif animation
Code: Select all
$ip = ListPane('i', '*', 0, '|');
$ipSizes = Report("{Size RAW};{FullName}<crlf>", $ip);
One of my scripts helped you out? Please donate via Paypal
Re: Select by Size
ok. 17.20 is out so after upgrade i'll find software which could do the record. In hopes a small update is the reason for the glitch.
thank you.
thank you.
Power-hungry user!!!