Link to home
Start Free TrialLog in
Avatar of sferret
sferret

asked on

Cfdirectory

I'm using cfdirectory to try to get a list of all *.cfm on my server. However, using <cfdirectory directory="c:\blah" .... > only gives me whatever is in the blah folder. Is it possible to include all subdirectories?

example- in dos dir *.txt only returns results in current folder. however dir *.txt /s returns all subdirectories under that folder.
ASKER CERTIFIED SOLUTION
Avatar of demarco
demarco

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you could create a custom tag that acts according to your choice.

The logic is very simple.
give the root folder, loop it, check for sub folders and so on. Just check the help for CFDIRECTORY

You could also use the tag that has been told by demarco.

Regards
Harish(hart)
Avatar of TallerMike
TallerMike

I use <CF_DirectoryList_Enhanced> as demarco suggested, with great success.
Avatar of sferret

ASKER

Thanks for your help.
Your welcome