> I have pdf files in a directory that CF reads using 
> cfdirectory. It finds the filename under the user's name such 
> as "jsmith.pdf", but at times a user may have two pdf files 
> in the directory such as "jsmith.pdf" and "jsmith2.pdf".
> 
> How can I have it find both instances?  Can I use a wildcard 
> character such as "*"? 
> 
> For example: 
> <cfloop query="dirlist"> <!--- loop outputs the file names 
> and sizes of each file ---> #name*# </cfloop>


You could do it on the cfdir call IIRC

<cfdirectory 
   action = "list"
   directory = "/the/dir/"
   name = "dirlist"
   filter = "john_smith*.pdf"/>

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a20.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253124
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to