<cfset strSelect = "Inetpub,temp,WINDOWS">
<cfdirectory action="LIST" directory="c:\" name="directories"/>
<cfoutput query="directories">
<cfif type is "dir" and listfindnocase(strselect,name)>#name#</cfif>
</cfoutput>
Hope this helps
-----Original Message-----
From: FlashGuy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 10:27 AM
To: CF-Talk
Subject: Re: Omitting certain directories using <cfdirectory
Hi Candace,
Was there a reply to my question?
I don't see anything.
On Tue, 24 Sep 2002 10:10:16 -0400, Candace Cottrell wrote:
> Candace K. Cottrell, Web Developer
> The Children's Medical Center
> One Children's Plaza
> Dayton, OH 45404
> 937-641-4293
> http://www.childrensdayton.org
>
>
> [EMAIL PROTECTED]
>
> >>> [EMAIL PROTECTED] 9/24/2002 6:57:51 AM >>>
> Yo All,
>
> I'm not sure how to go about this. I'm using <cfdirectory and <cfloop
> to list a directory structure. This is all working great. I also have a
> access database where I enter in
> some of the directories that I'm listing. For example the directory
> structure for C:\ might read...
>
> Documents and Settings
> Inetpub
> My Music
> Program Files
> temp
> updates
> WINDOWS
>
> In my database I have a field called "strSelect" were a few or all of
> the above directories could be entered in. Like...
>
> strSelect = "Inetpub,temp,WINDOWS"
>
> I would like to read this string in from the database and based on the
> results display only those directories in the above list.
>
> Can this be done? If so, how. I'm not sure of the correct procedure or
> syntax.
>
> Thanks
>
>
> ---------------------------------------------------
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---------------------------------------------------
>
>
>
>
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists