On Wed, May 30, 2012 at 1:03 AM, Mary Jo Sminkey wrote: > Basically I have situations where I need to wait for ColdFusion to finish > creating a file before displaying it. The legacy code I'm working with using > a cfexecute to run an executable file, and it uses this code snippet: > <cfloop condition="NOT FileExists(theFileName)"></cfloop> > <cfinclude template="viewFile.cfm">
If you just add a timeout to your cfexecute, CF will wait and continue when the legacy program is ready. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351361 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

