How can one find folders with large nbr of files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

How can one find folders with large nbr of files?

Post by j_c_hallgren »

Maybe I'm just not recalling, but is it possible to use XY to find only those folders containing a large nbr of files so that I can examine for cleanup? I know based on nbr of files that are searched when I look at C:\ that there must be some folders that have gotten a bit out of control, and one that I check often is my Opera as it stores one very frequently updated RSS feed as .mbs that build up quickly.
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.

admin
Site Admin
Posts: 64287
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How can one find folders with large nbr of files?

Post by admin »

No way currently.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

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

Re: How can one find folders with large nbr of files?

Post by j_c_hallgren »

admin wrote:No way currently.
:cry: That's too bad...I have many ways to find large files, including XY, J-Disk Report, File Menu Tools, etc. but I can't think of any other app that I can use for this task...thus, it presents a possible opportunity for XY to do something others can't...even if it were via a script.
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.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: How can one find folders with large nbr of files?

Post by Stefan »

What about an script to count files and wrote this as comment in the Comment-column?
Then the comment column can be sorted.
comment with amount of files in folder
comment with amount of files in folder
Comments001.png (4.89 KiB) Viewed 3183 times
Would be nice to have an extra, second column for such temporary things to not overwrite the real comments.
Could be from aid more often, i think.



Note: I see that the comments sort is not natural for number, or what ever this sorting is called,
but maybe this is an setting only or have to be covered by the script.

corneliusd
Posts: 4
Joined: 13 Aug 2009 17:54
Location: Portland, Oregon, USA
Contact:

Re: How can one find folders with large nbr of files?

Post by corneliusd »

Yeah, it'd be cool of something like that were integrated in XY.
j_c_hallgren wrote:but I can't think of any other app that I can use for this task
Well, SequoiaView (http://sequoiaview.en.softonic.com/) comes close. As you move your mouse around the screen, folders are highlighted in yellow. It's a nice quick overview of the disk space taken up and it's easy to see large clusters of files. You can even set the color for different file types in the view. A little different than j-disk. It's kind-a old, but works fine in Windows 7. And it's Free!
David Cornelius
CorneliusConcepts.com

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

Re: How can one find folders with large nbr of files?

Post by j_c_hallgren »

corneliusd wrote:Well, SequoiaView (http://sequoiaview.en.softonic.com/) comes close.
:shock: That was my initial reaction when I first saw that a nbr of yrs ago and yes, I did try it out back then but I guess I'm just not a graphical type of person 'cause it just didn't make sense to me and thus isn't the solution either...was a nice try though, ok?

BTW, just to make sure we're clear: the problem I have isn't locating files that are large but folders that have a large nbr of files, especially bunches of tiny ones like language translations, etc. so that I can then examine the contents of those folders and see if there are things that I can eliminate.

Of course, then how would I locate a situation where (let's say) the lowest level folder has only 30 files, but there are 40 of those folders? As 30 files isn't that large of a nbr, but when mutiplied 30 times, it is...I don't want the search to go too far up the tree as that would thus naturally find many more results than I really desire...so some sort of limit to nbr of levels examined may be needed as a selection criteria.
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.

Gandolf

Re: How can one find folders with large nbr of files?

Post by Gandolf »

This XY script:

Code: Select all

Run "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Program Files\AutoHotkey\Extras\Scripts\FileCount.ahk" "<curitem>";
with this AHK script (saved as FileCount.ahk in the appropriate folder) will show the number of items in the current folder.

Code: Select all

;Parameter passed is Path
IfNotEqual, 0, 1
{
	MsgBox, Error: Exactly one parameter "`%F" required.`n`nNumber of parameters passed: %0%`n`nExiting.
	Exit
}
IfNotExist, %1%
{
	MsgBox, Error: Path "%1%" not found.`n`nExiting.
	Exit
}
InputPath = %1%
StringRight, LastCharacter, InputPath, 1
If LastCharacter = \
{
	StringTrimRight, Path, InputPath, 1
}
else
{
	Path = %1%
}
Send, {Enter}
Sleep, 100
i = 0
Loop, %Path%\*.*
   i++
clipboard = %i%
ClipWait
MsgBox, There are %clipboard% files in "%Path%"
Send, {Backspace}
Sleep, 100
Return
However, if I add the line :

Code: Select all

comment <clipboard>;
to the XY script it always displays the previous item from the clipboard. I have Clipmate, running which might be something to do with it.
Somebody who understands XY scripting should be able to sort that out, I don't have the time (or inclination!).

It might be a solution until Don adds count as a column.

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Win10, Win11 @100%

Re: How can one find folders with large nbr of files?

Post by John Bee »

j_c_hallgren wrote::cry: That's too bad...I have many ways to find large files, including XY, J-Disk Report, File Menu Tools, etc. but I can't think of any other app that I can use for this task...thus, it presents a possible opportunity for XY to do something others can't...even if it were via a script.
Q-Dir does this by showing the number of subdir and number of files in each folder in the size column I think.

It is shown as '12/136'. (# of folders/# of files)

John Bee
Posts: 323
Joined: 01 May 2005 20:21
Location: Win10, Win11 @100%

Re: How can one find folders with large nbr of files?

Post by John Bee »

j_c_hallgren wrote::cry: That's too bad...I have many ways to find large files, including XY, J-Disk Report, File Menu Tools, etc. but I can't think of any other app that I can use for this task...thus, it presents a possible opportunity for XY to do something others can't...even if it were via a script.
Q-Dir does this by showing the number of subdir and number of files in each folder in the size column I think.

It is shown as '12/136'. (# of folders/# of files)

Site: http://www.softwareok.com/?seite=News

nony
Posts: 170
Joined: 16 Sep 2009 19:51

Re: How can one find folders with large nbr of files?

Post by nony »

TreeSizeFree would be enough for you if u don't want the pro version.

You can toggle number of files or other from view menu.
sshot-11.png
sshot-11.png (7.64 KiB) Viewed 3128 times
Attachments
sshot-11.png
sshot-11.png (9.24 KiB) Viewed 3127 times

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

Re: How can one find folders with large nbr of files?

Post by j_c_hallgren »

nony wrote:TreeSizeFree would be enough for you if u don't want the pro version.
You can toggle number of files or other from view menu.
Thanks for pointing that out! I have used that product since ver v1.71 but had not updated for a long while and it seems that was a new feature added after the vers I was using.

It would still be great to get this in XY so that one could manage the files found at same time, like previewing them, deleting, etc.
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.

Post Reply