What kind of a file is it? you might have to use the wait command so that your system has time to stop using the file.
For instance, was the file uploaded, then processed for its internal information? maybe its a video file that is being processed by the system? Thanks, William ---------- William E. Seiter On Nov 28, 2011, Mo Lay <[email protected]> wrote: Hi Peers, i have an issue deleting an existing file in a specific directory..It says could not delete the file for unknown reason.. i have googled that lit bit and was able to delete the file after a waiting time of 1.5 min using the following statement : <cfset createObject("java", "java.lang.Thread").sleep(JavaCast("int", 90000))>. this is long waiting time for my users.. Is there another way to stop / disconnect the file process and try to delete it ? thank ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5735 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
