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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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