Page 1 of 1

How can one find folders with large nbr of files?

Posted: 09 Oct 2009 08:45
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.

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

Posted: 09 Oct 2009 09:06
by admin
No way currently.

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

Posted: 09 Oct 2009 09:31
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.

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

Posted: 09 Oct 2009 10:05
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.
Comments001.png
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.

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

Posted: 11 Oct 2009 05:22
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!

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

Posted: 11 Oct 2009 06:14
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.

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

Posted: 11 Oct 2009 14:21
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.

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

Posted: 11 Oct 2009 14:44
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)

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

Posted: 11 Oct 2009 14:45
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

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

Posted: 12 Oct 2009 07:20
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

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

Posted: 12 Oct 2009 10:25
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.