I did mention scheduled tasks as a way to initiate a CF page, but I wasn't very clear with what I was saying overall, was I? With an event gateway you can actually listen for events and respond, with a scheduled task you're stuck with polling at a one minute intervals. So if per-minute checks is good enough (and not unacceptable load), then you can definitely use a scheduled task to "monitor" a directory.
cheers, barneyb On 4/20/05, Jim Davis <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: Barney Boisvert [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, April 20, 2005 2:51 PM > > To: CF-Talk > > Subject: Re: Check for a file in a directory > > > > > > CF scripts only execute based on page requests, either from users or > > from scheduled tasks. So CF can't "monitor" a directory for a > > specific file, unless you use an event gateway (only in CF7 > > Enterprise). > > Sort of - even as far back as CF 3.x you could write a template to do this > and then schedule it to run every minute. > > We do this often for uploadable content: the task just checks the directory > for new files, if it sees any it adds those files to a Verity search index. > > Jim Davis -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203729 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