Solved

Look for file with wildcard

Posted on 2002-06-05
2
139 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
Comment Utility
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
Comment Utility
Hehe, thanks!

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now