Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

Look for file with wildcard

Hi,

I would like to search for a file in s specifc directory with a joker or wildcard, like:

image??.cfm
or
image*.*

How can I do this?

Tanx,
Floris.
0
florisb
Asked:
florisb
1 Solution
 
reitzenCommented:
The CFDIRECTORY tag has a filter parameter that will allow you to filter the files/folders returned based on your requirements.  

Simply enter the filter exactly like you did in your question:    

<cfdirectory action="LIST" directory="#MyPath#" name="qryDirectory" filter="image*.*" sort="name">

HTH
Rob
0
 
florisbAuthor Commented:
Hehe, thanks!

Easy and works perfect, also filters like ?u?.*
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now