makes sense and I didn't even know there was a DirectoryExists() shows you
how much I deal with directory stuff. :) 
I will try both although it still is odd that the cftry/cfcatchs were
working
that way.
Thanks!
Kelly

-----Original Message-----
From: Richard Fantini [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 12, 2001 8:14 PM
To: CF-Talk
Subject: Re: HELP CFTRY/CFCATCH/CFDIRECTORY problem


Well, I would use DirectoryExists(), but if you really want to use
TRY/CATCH, you could do it like this...


<CFTRY>
 <cfdirectory action="create" directory="#FILEPATH##SON#\">  <CFCATCH
type="ANY">
  <!--- We dont really care --->
 </CFCATCH>
</CFTRY>

<CFTRY>
 <cfdirectory action="create"
directory="#FILEPATH##SON#\#DATEFORMAT(NOW(),'mmddyy')#\">
 <CFCATCH type="ANY">
  <!--- We dont really care --->
 </CFCATCH>
</CFTRY>

<CFTRY>
 <cfdirectory action="create"
directory="#FILEPATH##SON#\#DATEFORMAT(NOW(),'mmddyy')#\#SSN#\">
 <CFCATCH type="ANY">
  An Error has occurred
 </CFCATCH>
</CFTRY>

-Rich




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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

Reply via email to