Find files but ignore file extension in search

Dec 18, 2008
4
0
This might be real simple.

I want to find all files that have a specific string to the left of the extension and not include the extension as part of the wildcard search.

For example:

For my *doc* search,

return:

doctor.doc
builddock.txt
docktime.doc
doc

but don't return:
badfile.doc
anyfile.doc

In other words, if *doc* is the extension don't show me the file unless *doc* is also part of the file name.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
From: glennw
Subject: [Support-t-3406] Find files but ignore file extension in search

| This might be real simple.
|
| I want to find all files that have a specific string to the left of
| the extension and not include the extension as part of the wildcard
| search.
|
| For example:
|
| For my *doc* search,
|
| return:
|
| doctor.doc
| builddock.txt
| docktime.doc
| doc
|
| but don't return:
| badfile.doc
| anyfile.doc
|
| In other words, if *doc* is the extension don't show me the file
| unless *doc* is also part of the file name.

AFAIK this ought to do it: *doc*.* - BUT it does not, it also reports all files with the .DOC extension. Why it ignores the presence of the explicit dot "." to separate name from extension I do not recall. However, this apparently does: *doc*[.]* - the brackets around the dot make it a required character [even if only implied].
--
HTH, Steve
 
Dec 18, 2008
4
0
From: glennw
Subject: [Support-t-3406] Find files but ignore file extension in search

| This might be real simple.
|
| I want to find all files that have a specific string to the left of
| the extension and not include the extension as part of the wildcard
| search.
|
| For example:
|
| For my *doc* search,
|
| return:
|
| doctor.doc
| builddock.txt
| docktime.doc
| doc
|
| but don't return:
| badfile.doc
| anyfile.doc
|
| In other words, if *doc* is the extension don't show me the file
| unless *doc* is also part of the file name.

AFAIK this ought to do it: *doc*.* - BUT it does not, it also reports all files with the .DOC extension. Why it ignores the presence of the explicit dot "." to separate name from extension I do not recall. However, this apparently does: *doc*[.]* - the brackets around the dot make it a required character [even if only implied].
--
HTH, Steve

Excellent, thanks.

Glenn
 
Similar threads
Thread starter Title Forum Replies Date
J ffind does not find files Support 4
vefatica Find Files/Text dialog: does it work? Support 0
M Fixed Cannot use the "Browse..." function in "Find files/text" dialogbox Support 2
R How to use ffind to find older files? Support 9
J Find Files - changing folder Support 1
Alpengreis List command: text truncated in find box (german) Support 9
R FIND command error Support 9
T FFind - can we display n number of lines after the find? Support 2
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
thedave Problem chaining piped FIND commands in BTM Support 7
D CD doesn't always find everything Support 8
B Fixed FFIND doesn't find last character in file without CR/LF at EOF Support 1
vefatica FFIND /S, find directory with specified name? Support 7
D Why doesn't ffind find directory? Support 3
nikbackm How to? Find duplicate lines in text file Support 0
P OK, I can't find how to do this, but I know you wizards will... Support 5
noahcoad WAD cmd.exe under tcc doesn't find apps Support 4
S How to? Find installer downloaded by "option /u"? Support 11
M How to? Find out the total allocated size of a directory tree... Support 7
S CDD Doesn't Find Directory? Support 3
L File association: System cannot find the associated program Support 30
Charles Dye Edit / Find dialog Support 0
BobK Error from START cmd, "cannot find the file" Support 16
D ACTIVATE doesn't find windows Support 7
R A problem using find in list when word wrap? Support 2
nikbackm Find out when a process has stopped Support 5
J Find failure dialog box failure Support 0
J Problem with Find dialog Support 3
J Problem with %var:find=replace% syntax Support 5
S LIST and F for find Support 4
M TCC cannot find the path specified Support 4
M TCC Can't find WScript.exe where it says it is Support 0
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
fpefpe How to? shortcuts and batch files Support 4
C v28 key files Support 2
C duplicate files in multiple plugin sites Support 9
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
S How to? Deinstalling TC/reinstating execution of bat files by cmd in Win7 Support 31
vefatica FFIND, temp files? ... not deleted? Support 0
R FUNCTION to count NUMBER of files matching a pattern and specific length/not length Support 4
vefatica Tmp files from in-process pipes not deleted Support 6
vefatica Finding files with alternate data streams? Support 4
rps Multi-column DIR /v not displaying all files. Support 5
D How to skip files in a fileset? Support 6
vefatica PIPEVIEW leaves TMP files Support 18
K "copy /z /w" command not deleting read-only files in destination Support 10
Jesse Heines "Taken" date for JPG and PNG files Support 4

Similar threads