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:203713
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

Reply via email to