This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C007DB.49E2089A
Content-Type: text/plain;
charset="iso-8859-1"
Use CFDIRECTORY to get a list of files in the directory, loop through the
list deleting the files with CFFILE, then use CFDIRECTORY to remove the
directory. I have attached a custom tag that will delete a directory and
all its subdirectories and files, so use it for ideas or use it with care.
Justin Kidman
-----Original Message-----
From: Double Down [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 3:04 PM
To: House Of Fusion
Subject: CFFILE Question
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C00793.33D72AA0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
I want to delete a folder that has an image inside of it. The image can be
either a gif or a jpg. How do I set up the CFFILE delete tag to first
delete the image and then the folder.
TIA
DDINC
------=_NextPart_000_0000_01C00793.33D72AA0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial><SPAN class=3D520030222-16082000>I want to =
delete a folder=20
that has an image inside of it. The image can be either a gif or a =
jpg. =20
How do I set up the CFFILE delete tag to first delete the image and then =
the=20
folder.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial><SPAN =
class=3D520030222-16082000></SPAN></FONT> </DIV>
<DIV class=3DSection1>
<DIV><FONT face=3DArial size=3D2>TIA</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>DDINC</FONT></DIV></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0000_01C00793.33D72AA0--
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------_=_NextPart_000_01C007DB.49E2089A
Content-Type: application/octet-stream;
name="delete_dir.cfm"
Content-Disposition: attachment;
filename="delete_dir.cfm"
<CFPARAM NAME="Attributes.Dir">
<CFDIRECTORY ACTION="LIST" DIRECTORY="#Attributes.Dir#" NAME="DirListing">
<CFLOOP QUERY="DirListing">
<CFIF NAME NEQ "." AND NAME NEQ "..">
<CFIF TYPE EQ "Dir">
<CF_Delete_Dir Dir="#Attributes.Dir#\#NAME#">
<CFELSE>
<CFFILE ACTION="DELETE" FILE="#Attributes.Dir#\#NAME#">
</CFIF>
</CFIF>
</CFLOOP>
<CFDIRECTORY ACTION="DELETE" DIRECTORY="#Attributes.Dir#">
------_=_NextPart_000_01C007DB.49E2089A--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.