David Adams wrote:
> I am looking for a simple block of code that will loop through a
> directory and delete it's files when called.  I do NOT want to delete
> the directory, only its contents.

Why loop?

<cfexecute
        name="c:\winnt\system32\cmd.exe"
        parameters="/c del c:\trash\*.* /q" />

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to