?
Solved

Finding files in complex directory structures

Posted on 2000-03-08
9
Medium Priority
?
169 Views
Last Modified: 2010-04-02
I want to find out if there are shareware or freeware utilities that can do the following.

If I provide n file names, like:

a.txt
b.123
c.txt

Given a top level directory, I want to search the top level directory and any subdirectories for instances of these files.

The information would appear in this format:

File Name | # of hits | Paths to file(s)
----------------------------------------
a.txt     |  2        | c:\dir1\subdir2
          |           | c:\dir1\subdir3
----------------------------------------
b.123     |   1       | c:\dir1
----------------------------------------

etc., etc.

Surely someone has written tools to do this?

I know that Windows comes with a "Find Files" utility, but it can only search for specific file names one at a time, correct?  You cannot supply a list of files to find at once.

Thanks!
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 200 total points
ID: 2597398
it would be easy enought to write, juse use the FindFirstFile()/FindNextFile() procedures...
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 2598049
nietod:

Given my current skill set as a developer, I would prefer not to have to write this utility myself.

I would be much more interested in something ready-made I could download and use right away.

But thanks anyway!

Tom
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 2598072
nietod:

Just FYI

Someone else suggested elsewhere:

Apparently you can use the typical find file or folders that comes with windows. Just when you do a search just put names your looking for as follows:

file123.txt file789.hlp tile234.gif 123abc.txt

In other words just put a space between each file.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 22

Expert Comment

by:nietod
ID: 2598217
Then you certainly didn't need to accept my comment as an answer as it REALLY didn't help you.  FYI you could have just deleted the question and the points woudl have been refunded to you.
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 2603167
I was concerned that deleting the question would upset you.

The points are yours!

Tell me, do you do this full time or do you have a day job, so to speak?  How does somebody accrue 100,000 points like many of you "Gurus" have done?  You must have to answer a LOT of questions!

May I ask what you do for a living?  Do you actually work for Experts Exchange?

0
 
LVL 22

Expert Comment

by:nietod
ID: 2604230
>> I was concerned that deleting the
>> question would upset you.
Not if it was unanswered.  I don't like it when an expert answers in a comment--because he is unsure it is a true answer--and then the question gets deleted.  But EE has now prevented that from occuring.  But if an expert hasn't really helped, that is different.

>> How does somebody accrue 100,000
>> points like many of you "Gurus" have done?
I can't sp[eak for anyone else.  But i do it while waiting for the compiler or other tools to finish.

>> May I ask what you do for a living?
Computer programmer.

>> Do you actually work for Experts Exchange?
I'm a EE advisory board member, which is formed from some of the top experts.  We make suggestions for how EE should be run, suggestiong for changes, and provide feedback and beta testing.

Do those answers compensate you for the points?  :-)
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 2605283
Yes, your answers helped take the sting out of giving you those whopping 10 points for "nothing".  :)

It is interesting to learn more about you smart people.  :)
0
 
LVL 22

Expert Comment

by:nietod
ID: 2605485
It was 50 points.  Hurting now?
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 2605884
Oh...it was 50?  OUCH!

Well, they are still yours!  :)

How would you even give them back to me, assuming I wanted them, back which I don't.  :)

I suppose you could post a bogus question and I could answer it.

But seriously...it is really "okay".  I don't use this site enough to stress over points.  Usually by the time I have another question, I have accumulated enough points.

Tom
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses
Course of the Month11 days, 6 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question