Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfdirectory mx 7

Status
Not open for further replies.

jbern

Programmer
Sep 2, 2007
2
US
below Is code I used in cf 4.5 but seems to crash in mx 7. I see that cfdirectory has changed a little but am not sure why it crashes my page.
The goal of the code is to create a folder if it is not found

<cfdirectory action="list" directory="c:/websites/port/artifacts/bsmith" name="myDirectory">
<cfif myDirectory.recordcount eq 0>
<cfdirectory action="create" directory="c:/websites/port/artifacts/bsmith">
</cfif>
 
Ignore this post Imade a mistake

<cfdirectory action="list" directory="c:/websites/port/artifacts/bsmith" name="myDirectory">
<cfoutput query="mydirectory">
<cfif #name# neq "bsmith" >
<cfdirectory action="create" directory="c:/websites/port/artifacts/bsmith">

</cfif>
</cfoutput>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top