Solved

Look for file with wildcard

Posted on 2002-06-05
2
141 Views
Last Modified: 2013-12-24
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
Comment
Question by:florisb
2 Comments
 
LVL 6

Accepted Solution

by:
reitzen earned 100 total points
ID: 7056766
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
 
LVL 2

Author Comment

by:florisb
ID: 7061334
Hehe, thanks!

Easy and works perfect, also filters like ?u?.*
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question