I stumbled upon this a couple weeks ago, the exact minute I needed it, believe it or not. This is what I meant by the timeout setting:
http://www.corfield.org/blog/index.cfm?do=blog.entry&entry=C749C0CE-B147-4BBA-F6AF009076498BBA If it takes longer than the timeout, you can cftry/cfcatch the problem. You'll have to experiment with your executable to see if it aborts or continues forever, but my guess is it will abort. Robocopy is especially great because it can copy just the new and changed files. Chances are, this will be significantly less time consuming. BTW nothing's stopping you from setting your timeout to 9999999 etc. Or you could loop & wait for a file to be created, etc.: while(true) { if (isDoneCopying()) break; thread.sleep(100); } But that should give you a good idea of what it takes. -nathan strutz Ben Mueller wrote: > Thanks for the advice. The "timeout" thing has me confused, though. What I > really want to do is wait until the process has completed copying. Let's say > that could take as much as 10 minutes (hopefully won't ever be that high, but > not out of the question)--do I really set the timeout to 600? And then, if > it happens to take longer than 600 seconds, what then? Presumably, the rest > of the page continues to execute, but the copy is still happening. How do I > trap that condition? I suppose I could do a combination of the two posts > here: set a high timeout AND have xcopy/robocopy write an output file, which > I could then search for some kind of "done" string. > > Does that sound reasonable, or am I totally off base? > > > > >>I recommend robocopy. It's part of the windows toolkit or somesuch. >>Microsoft makes it. It's quite fast and reliable. A good step up from xcopy. >> >>As for returning when an operation is done, I think that has to do with >>not specifying a timeout="" attribute on your cfexecute tag. If you >>don't add it, your process will run in another thread and you'll never >>know when it's done. >> >>-nathan strutz >>http://www.dopefly.com/ >> >> >> >>Ben Mueller wrote: >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:202693 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

