look at the directoryexists function. that will do what you want. Kathryn Butterly Web Developer Washington Mutual Finance 813 632-4490 [EMAIL PROTECTED]
-----Original Message----- From: phumes1 [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 8:56 AM To: CF-Talk Subject: Re: <cfdirectory - Check to see if directory exists Hi, I want to check "MyDirectory.name" to see if a directory exists on the server and if not, create it. The below code doesn't work. Whats the correct <cfif statement? <cfdirectory directory="c:\temp\test" name="MyDirectory"> <cfif #MyDirectory.name# IS "test"> <h4>Found</h4> <cfelse> <h4>Not Found</h4> Create directory... </cfif> ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

