I think at the end of your cffile you'll need

#Files[i].filename#

....although I'm not sure if that's the name of the column in the Files 
query.

The best way to figure it out is to dump your query var "Files" and see what 
it produces.  This will give you insight into what's going on and what 
you'll need to do.

-- Josh

----- Original Message ----- 
From: "Deepak Gupta" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Friday, April 06, 2007 3:07 PM
Subject: Re: Delete contents of a directory cfdirectory or cffile


>I am trying to do this
> <cfdirectory action="list" name="Files" 
> directory="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile" 
> filter="*.zip">
>
>
>
> <cfloop from="1" to="#Files.recordcount#" index="i">
>
> <cffile action="delete" 
> file="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile\#Files[i]#>
>
> </cfloop>
>
> Wats goin wrong here??????
>
>>sorry, i should have specified that it returns a query object of the
>>files in the directory :)
>>
>>On 4/6/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
>>> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274746
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to