Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

FFIND /S, find directory with specified name?

May
12,834
163
How can I get FFIND /S to find a directory with a specified name (and only directories with that specified name)? Below, how do I find "g:\tc17" only?
Code:
v:\> ffind /s /a:d g:\tc17
G:\tc17\plugins
G:\tc17\Styles

  2 files

v:\> ffind /s /a:d g:\tc17*
G:\tc17
G:\tc177

  2 files
 
I can't claim elegance. But if you want to specify a directory name to search for -- as opposed to a directory name to search in -- I think you must use a wildcard. And if you want a wildspec which can only match one specific filename, then the square brackets it is.
 
I thought my old standby — using “.” by itself at the end of a filename or directory name — would do the trick. As in: ffind /s /a:d c:\tc17.

Nope. But this did. Go figure:

ffind /s /a:d c:\tc17.*

I’d created c:\tc17 and c:\tc177. The command returned only c:\tc17 and not c:\tc177.
 

Similar threads

Back
Top