Batch file to find string?

February 26, 2013 at 01:55:17
Specs: Windows XP
Hello!,
I have a folder containing this files:

filename.ext
filename 2.ext
xxxx filename.ext
filename xxxxxxxx xxxxxxx.ext

How to find keywords "filename.ext" and i want prints "filename.ext" only

if find keywords "xxxx filename.ext" then sprints "xxxx filename.ext" only

.....
Thanks.



See More: Batch file to find string?

Report •


#1
February 26, 2013 at 02:37:14
Not clear, but try:

find /?

=====================
M2 Golden-Triangle


Report •

#2
February 26, 2013 at 09:34:23
a sample of your source-file text, and what you want the finished output to look like, would be helpful.

Report •

#3
February 26, 2013 at 09:51:01
It looks like you are looking for file names, not strings. unless you were hoping to look for part of the file name within the file?

:: mike


Report •

Related Solutions


Ask Question