Please help.
I will like to list all the files in various subdirectories that match a certain criteria.
As an example.
I have the following directory structure
a) C:\abb\one-two-abb-source\sent
b) C:\abc\three-four-abc-source\sent
c) C:\abd\one-two-abd-source\sent
d) C:\abb\four-two-abb-source\sent
e) C:\aaa\four-two-aaa-source\sent
f) C:\aaa\four-three-aaa-source\sent
In this example, I am interested in the subdirectories that have abb & aaa as part of the directory name (in this case a ,d,e & f)
I want to list all files in them that have a .txt extension
i.e.
C:\abb\one-two-abb-source\sent, C:\aaa\four-two-aaa-source\sent, C:\aaa\four-three-aaa-source\sent & C:\abb\four-two-abb-source\sent
Any ideas please on how I can do this.
Thanks
I will like to list all the files in various subdirectories that match a certain criteria.
As an example.
I have the following directory structure
a) C:\abb\one-two-abb-source\sent
b) C:\abc\three-four-abc-source\sent
c) C:\abd\one-two-abd-source\sent
d) C:\abb\four-two-abb-source\sent
e) C:\aaa\four-two-aaa-source\sent
f) C:\aaa\four-three-aaa-source\sent
In this example, I am interested in the subdirectories that have abb & aaa as part of the directory name (in this case a ,d,e & f)
I want to list all files in them that have a .txt extension
i.e.
C:\abb\one-two-abb-source\sent, C:\aaa\four-two-aaa-source\sent, C:\aaa\four-three-aaa-source\sent & C:\abb\four-two-abb-source\sent
Any ideas please on how I can do this.
Thanks