FIND button which searches only folders

Hi. I want a find button that will search a group of 4 shared drives.
There is a huge amount of stuff on these drives.
So would it speed things up if my button searched just folder names?
If so, how would I add that argument to my button?

Thanks

Using the raw Find command in a button may not provide an easy way to do this... Opus lets you define FILTERS for a variety of file operations like find, copy, etc... which may include a "Type" clause that can be set to a value of "Folders Only". Unfortunately, the raw Find command doesn't let you combine the use of a filter AND an ad-hoc NAME... you have to add the NAME of whatever you're searching for as an additional clause to the filter itself.

I've always found it strange that the Find command actually uses the NAME= argument as the name of a filter if you also then supply the FILTER argument - rather than supplying the name of the filter as a value to the FILTER arg itself (like how other commands do, such as the Copy command). Not knowing that - you might be tempted to think that something like:

find name="{RS|Enter string to search for...}" in {s} filter=folders_only

...might throw up a dialog to allow you to enter in a custom string as the name to search for, while letting the filter part of the command restrict the search of the name you entered to only whatever is otherwise defined in the filter (in your case, folders only). Sadly, that is not the case :frowning:

Still, you can at least TEST out the use of a filter set to Type = "Folders Only"... to which you'll have to add a NAME clause into the filter itself (like so), just to see whether or not it does in fact help speed up the search. If it does, then perhaps GPSoft will consider a feature request to modify the way the Find command works with the filter option; or perhaps you're satisfied with calling up the find panel to enter the name you want to search for into the filter.


There may also be some other method than an actual find command (maybe a flatview thing or something else I'm not able to think of right now)...

Thanks.
I tried one search without restricting the results to just folders.
After 30 minutes of waiting, I pressed cancel and gave up!
I guess I could do the folder-only search in Autohotkey - I just wish I could get the results back into a nice DOpus collection lister.

Can you show us the full set of parameters you are using for that Find?

It should not take 30 minutes to do a name-only search, unless the drives are extremely slow at just returning the directory listings.

If it's a shared drive on the other side of the world, via a slow or high-latency link, then that might be a problem as Opus has to get the directory listings back in order to search them. Using "syndicated search" may help there, by performing the search via the remote end and only sending back the results, but I think that is only supported if you have Windows 7 or Windows Server 2008 R2 at both ends. Opus's Find panel won't use it, but the search field on the toolbar should, if it is able to, as that hooks into Windows Search.

It will be a while before I get back to work to check the button syntax.

But the button code basically lists four drives like "L:" "X:" "O:" "Y:" using the code you kindly sent me a year or so ago.

These drives are packed full of thousands of folders and sub folders, and probably hundreds of thousands of tiny files (imagine the file directories for a major DVD/Bluray production company) - so 30 minutes doesn't seem that outrageous to me.

Pretty sure those drives are set up in some form of UNIX, so I guess I can't do the syndicated search...