RE: [Deleting Directories, Subdirectories, and files]
> What's your address?! ;^/ I have custom secure c++ clones of CFEXECUTE, CFDIRECTORY and CFFILE, etc. They're probably never be listed on my website though because selling stuff is too much of a hassle for me. I hate haggling for money and dealing with customer support issues. If you seriously want them... make an offer, and I'll either ignore you or send you a copy. ;-) --min, the burned-out > Chris > > > Urm... Send me a small brown bag full of ones and I'll send you > a copy of > > CFX_secExecute (a secure version of CFExecute). ;-> > > > > --min > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: [Deleting Directories, Subdirectories, and files]
Sorry for the previous message with a bad subject... Digest makes things a pain sometimes... There's a tag in the tag gallery called CF_DeleteDirectory. It does what you describe, using only CFFILE and CFDIRECTORY. I've used it once or twice, and it does its job pretty well. It's even recursive, something I didn't think I'd see in CF. - Randy Smith [EMAIL PROTECTED] Software Change Center Hewlett-Packard Company -Original Message- Date: Mon, 12 Feb 2001 21:53:31 -0600 From: "Chris Montgomery" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: [Deleting Directories, Subdirectories, and files] Message-ID: <[EMAIL PROTECTED]> Alex, Thanks for the quick response. Unfortunately, the app will be hosted on a shared server and cfexecute isn't available for security reasons. Chris Montgomery [EMAIL PROTECTED] Web Development & Consulting http://www.astutia.com Allaire Consulting Partner 210-490-3249/888-745-7603Fax 210-490-4692 AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78 > -Original Message- > From: Alex [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 9:31 PM > To: CF-Talk > Subject: Re: [Deleting Directories, Subdirectories, and files] > > > use cfexecute and run a command line delete > > "Chris Montgomery" <[EMAIL PROTECTED]> wrote: > What's the easiest way to delete a directory with two subdirectories and > files in those subdirectories since CFDirectory won't delete directories > unless they're empty? Do I need to loop thru each > directory/subdirectory and > get a list of the files in them, then loop again and delete them > one by one? > > TIA, > > Chris Montgomery [EMAIL PROTECTED] ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Deleting Directories, Subdirectories, and files
Chris, There's a cf_deltree tag and a cfx_deltree tag in the Allaire tag gallery. I imagine the cf_deltree tag does just that - descends to the outermost subdirectories, loops through and deletes files, then the directory, then works its way up the tree. Probably the easiest way to go if you can't install cfx's. I'm not sure if the cfx_deltree works the same way or if it simply calls an Windows OS function that does deletion, but it's most likely faster. Jim - Original Message - From: "Chris Montgomery" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 7:52 PM Subject: Deleting Directories, Subdirectories, and files > What's the easiest way to delete a directory with two subdirectories and > files in those subdirectories since CFDirectory won't delete directories > unless they're empty? Do I need to loop thru each directory/subdirectory and > get a list of the files in them, then loop again and delete them one by one? > > TIA, > > Chris Montgomery [EMAIL PROTECTED] > > Web Development & Consulting http://www.astutia.com > Allaire Consulting Partner > 210-490-3249/888-745-7603Fax 210-490-4692 > AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78 > > Transmitted: 20:52 CST ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: [Deleting Directories, Subdirectories, and files]
What's your address?! ;^/ Chris > Urm... Send me a small brown bag full of ones and I'll send you a copy of > CFX_secExecute (a secure version of CFExecute). ;-> > > --min ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: [Deleting Directories, Subdirectories, and files]
> > Alex, > > Thanks for the quick response. Unfortunately, the app will be hosted on a > shared server and cfexecute isn't available for security reasons. Urm... Send me a small brown bag full of ones and I'll send you a copy of CFX_secExecute (a secure version of CFExecute). ;-> --min ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: [Deleting Directories, Subdirectories, and files]
Alex, Thanks for the quick response. Unfortunately, the app will be hosted on a shared server and cfexecute isn't available for security reasons. Chris Montgomery [EMAIL PROTECTED] Web Development & Consulting http://www.astutia.com Allaire Consulting Partner 210-490-3249/888-745-7603Fax 210-490-4692 AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78 > -Original Message- > From: Alex [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 9:31 PM > To: CF-Talk > Subject: Re: [Deleting Directories, Subdirectories, and files] > > > use cfexecute and run a command line delete > > "Chris Montgomery" <[EMAIL PROTECTED]> wrote: > What's the easiest way to delete a directory with two subdirectories and > files in those subdirectories since CFDirectory won't delete directories > unless they're empty? Do I need to loop thru each > directory/subdirectory and > get a list of the files in them, then loop again and delete them > one by one? > > TIA, > > Chris Montgomery [EMAIL PROTECTED] ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: [Deleting Directories, Subdirectories, and files]
use cfexecute and run a command line delete "Chris Montgomery" <[EMAIL PROTECTED]> wrote: What's the easiest way to delete a directory with two subdirectories and files in those subdirectories since CFDirectory won't delete directories unless they're empty? Do I need to loop thru each directory/subdirectory and get a list of the files in them, then loop again and delete them one by one? TIA, Chris Montgomery [EMAIL PROTECTED] Web Development & Consulting http://www.astutia.com Allaire Consulting Partner 210-490-3249/888-745-7603Fax 210-490-4692 AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78 Transmitted: 20:52 CST ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Deleting Directories, Subdirectories, and files
What's the easiest way to delete a directory with two subdirectories and files in those subdirectories since CFDirectory won't delete directories unless they're empty? Do I need to loop thru each directory/subdirectory and get a list of the files in them, then loop again and delete them one by one? TIA, Chris Montgomery [EMAIL PROTECTED] Web Development & Consulting http://www.astutia.com Allaire Consulting Partner 210-490-3249/888-745-7603Fax 210-490-4692 AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78 Transmitted: 20:52 CST ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists