Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search for existance of certain files in tree of subdirectories

Status
Not open for further replies.

njitter

Technical User
Sep 4, 2001
122
0
0
US
Hi,

i need to perform the following task. I have a tree of directories that contain files. I need to check that each subdirectory contains a complete set of files. If something is missing i need to report that directory.

[tt]
----AAA
1234.txt
1234.dat
1245.exe
1234.sig
----BBB
1234.txt
1234.dat
1234.sig[/tt]

directory AAA is complete. Directory BBB is missing the EXE file i need to check that one.

Anyone got an idea how to do this?

---
Happy Happy Joy Joy
 
there is a faq on recursive folder / file search.
you will need to build a hash table of files names that you are looking for, pass this to the recursive function, tick them off as you find in the objFolder.Files, ...check that they have all been found by updating the hash tables .Item = True from False, then check that all items are set to = True for each folder

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top