> 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?

I think that this is caused by the OS locking those files exclusively while
your CF thread is running. You could probably get around this by simply
moving from one page to another, either by using CFLOCATION or maybe even
GetPageContext().forward().

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:218122
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to