Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • 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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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