Directory/file listing question, with a twist

PAz

PAz

Soldato
Joined
18 Oct 2002
Posts
6,567
Location
Beds
Hi there

I've got a bit of a task to do at work and was hoping someone here could help make it easier :D Heres the lowdown...

I've got approximately 200 folders on a computer, each with anything from 10 to 200 files in them.

I need to produce a report that will show me:

- All folder names (obviously I can do this using the dir command from a command prompt)

* But this is the twist *

- I also need to list, under each folder, all the *.cfp files within that the folder. Each folder contains a variety of file types, but I only need the cfp files listed.

So for example I need a report that is something like (it doesn't need to look pretty, a similar output to doing a dir command would be fine):

Code:
FOLDER A
- 1.cfp
- 2.cfp

FOLDER B
- 1.cfp
- 2.cfp
- 3.cfp

etc...

Now I'm pretty sure I remember doing something like this along time ago using PHP, but the difference here is I can't use any web based scripts as the PC is completely stand alone and detached from the network.

Anybody know how I can produce such a report?

Thanks in advance =)
 
Back
Top Bottom