I have an EXE that creates a folder and three files. I need to make sure the EXE is finished completely before I query the new folder to get the file names. The folder and files are created successfully, but the cfdirectory query comes up empty when it runs immediately after the files are created. If I then comment the cfexecute and re-run the page, the cfdirectory does properly list all the files. I'm guessing that first time through, the files haven't been created before the cfdirectory runs. I thought an exclusive lock would do the trick, but it didn't. Any advice?
<cflock name="mylockname" type="exclusive" timeout="60"> <cfexecute name="myprogram.exe" timeout="60" outputfile="mylog.txt"></cfexecute> </cflock> <cflock name="mylockname" type="exclusive" timeout="60"> <cfdirectory action="list" directory="mydir" name="qryMyQryName"> </cflock> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218115 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

