On a side note, I can't think of a reason you would want to use a named lock, but use a random name every time. Since the point of a named lock is to make sure only one thread at a time can execute the code inside cflocks of the same name; generating locks with random names seems pointless since no two locks would ever have anything to wait on.
If you want to keep two pages from writing to the same file or directory at the same time, use the full file path or directory path as the lock name. ~Brad -----Original Message----- From: Michael E. Carluen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 12:01 PM To: CF-Talk Subject: RE: File disappears after cffile rename I am still trying to wrangle this issue. <cflock name="#CreateUUID()#" type="exclusive" timeout="30" throwontimeout="no"> <cfset PAGE_clean_SERVERFILE = replace(cffile.SERVERFILE," ","_","all")> <cffile action="RENAME" source="cffile.SERVERFILE#" destination="#PAGE_clean_SERVERFILE#"> </cflock> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291435 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

