Advertisement

03.27.2008 at 04:57AM PDT, ID: 23273617
[x]
Attachment Details

Delete Multiple Files in ColdFusion

Asked by dbarnes2 in ColdFusion Studio, ColdFusion Application Server, Cold Fusion Markup Language

Tags: , ,

I have a verity search and I am updating the search so that when I run a specific file it will delete any existing contents of the searchfile directory (all .txt files), then recreate them and index them.  The problem is with trying to delete all of the .txt files in the searchfile dir, when I run the statement below I get an error, any help would be appreciated

<cffile    action = "delete"
              file = "#searchFileDir#\*.txt"  >Start Free Trial
1:
2:
<cffile    action = "delete"
              file = "#searchFileDir#\*.txt"  >
 
Loading Advertisement...
 
[+][-]03.27.2008 at 06:05AM PDT, ID: 21220825

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 07:47AM PDT, ID: 21221928

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.27.2008 at 07:58AM PDT, ID: 21222098

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ColdFusion Studio, ColdFusion Application Server, Cold Fusion Markup Language
Tags: Adobe, ColdFusion, v.7
Sign Up Now!
Solution Provided By: pmascari
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628