FFIND /S, find directory with specified name?

May 20, 2008
11,391
99
Syracuse, NY, USA
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
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,448
88
Albuquerque, NM
prospero.unm.edu
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.
 
Dec 7, 2009
238
2
Left Coast, USA
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
Thread starter Title Forum Replies Date
D Why doesn't ffind find directory? Support 3
J ffind does not find files Support 4
T FFind - can we display n number of lines after the find? Support 2
B Fixed FFIND doesn't find last character in file without CR/LF at EOF Support 1
R How to use ffind to find older files? Support 9
D ffind hangs on large file Support 18
Alpengreis ffind dialog (/W) problem Support 4
vefatica FFIND, temp files? ... not deleted? Support 0
S FFIND text that includes " Support 7
D ffind /e hangs Support 7
vefatica FFIND needs work Support 12
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
Kachupp FFIND TPIPE Support 9
Gamegod ffind bug with chinese Support 2
vefatica FFIND and multi-line regular expressions Support 4
vefatica Make FFIND a bit more friendly? Support 14
M Trying to use ffind with a @file.lst doesn't work Support 4
vefatica Corruption from FFIND? Support 5
vefatica FFIND /S and System32? (and an OT mystery) Support 14
vefatica Help nit (FFIND and DIR with /S) Support 0
R ffind not setting %_ffind_ vars if /f is used Support 7
M FFIND wordA AND wordB Support 4
vefatica FFIND and _? Support 1
dcantor How to make line numbers fixed width in FFIND Support 11
C FFind /w works but FFind /= doesn't? Support 2
vefatica FFIND goes crazy Support 8
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
Steve Pitts How to? FFIND, regular expressions and double quotes Support 4
vefatica FFIND /S in my profile directory Support 2
A How to? Pass output from ffind to another command in a BTM file Support 5
Phileosophos Can FFIND match file names with a regular expression? Support 19
vefatica FFIND and size ranges Support 1
J How do I - ffind - with multiple items Support 10
M FFIND and LIST does not work for UTF-8 fles Support 10
C FFIND ERRORLEVEL Support 2
L FFIND no result display Support 10
H Directory wildcards not working with ffind Support 3
D ffind and directories Support 2
Stefano Piccardi detecting BOM, FFIND multibyte regex Support 18
dcantor FFIND syntax -- is /E"regex" /X supported? Support 2
S FFIND and quoted strings Support 4
S FFIND /E"reg exp" : not case insensitive Support 4
J Problem with FFIND Support 1
Alpengreis List command: text truncated in find box (german) Support 9
R FIND command error Support 9
vefatica Find Files/Text dialog: does it work? Support 0
R How to? Find a specific file in subfolders Support 11
Patulus TCHistoryLog: TCC: (Sys) The system cannot find the path specified Support 15
D unzip fails to find valid license Support 3
R Find in screen buffer - find next behavior Support 0

Similar threads