If you just want to silently ignore, wrap with CFTRY..CFCATCH and nothing in the CFCATCH. Typically windows has this problem if another process has the file open for some reason (or just hasn't cleaned up it's handles).
cheers, barneyb On Mon, Dec 7, 2009 at 7:37 AM, Stefan Richter <ste...@flashcomguru.com> wrote: > > Hi all, > what may be causing the following error and what - if anything - could I do > to prevent it? This is on a Windows server with CF8. > ColdFusion could not delete the file C:\Inetpub\...\folder\file.ppt for an > unknown reason. > > This happens when I run > <cfdirectory action="delete" directory="C:\Inetpub\...\folder" recurse="yes"> > > Regards, > > Stefan > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328906 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4