I am new to this, I have tons of directories that I am working on. I want to
output the files in each directory to a comma delimited list with each list
named after the directory containing the files. So far I have been able to
write a code that groups each files underneath each directory but i'm stuck as
to the list part, I need help as to packing the output into a list thanks for
your assistance.
I have gotten as far as this
<cfset dir = ("D:\dox\")>
<cfdirectory name="Getdir" action="list" directory="#dir#" type="All"
recurse="yes">
<cfquery dbtype="query" name="Getfiles">
SELECT * FROM Getdir ORDER BY directory, name </cfquery>
<CFOUTPUT QUERY="GetBoth" GROUP="directory">
<br><B>#GetBoth.directory#</B></FONT><br>
<CFOUTPUT>#GetBoth.name#<BR></CFOUTPUT>
</CFOUTPUT>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326510
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4