Thanks Barney. Sorry I re-read my previous email and realized I may have worded wrong. I don't want a form that submits anything. Just a way for the CF script to monitor this directory for a file and then do a cfif...
-----Original Message----- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 2:26 PM To: CF-Talk Subject: Re: Check for a file in a directory You mean like this: <cfif structKeyExists(form, "filename")> <cfif fileExists("c:\path\to\directory\" & form.filename)> File Exists! <cfelse> File Doesn't Exist! </cfif> </cfif> <form method="post" action="#cgi.script_name#"> <input name="filename" /> <input type="submit" /> </form> On 4/20/05, Robert Orlini <[EMAIL PROTECTED]> wrote: > Thanks all. I read over the link below, however, I need it to monitor this > directory with the use of a form that a user enters the file name so the > <cfif IsDefined("FORM.yourFile")> will not work. > > How can I have it monitor the directory on its own so-to-speak and then tell > me if it finds a certain file. > > Robert O. -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:203714 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

