It's easy enough to get the current directory and strip off the last folder.
Something like:

<cfset uppath=rereplace(GetBaseTemplatePath()), "[^\]+\\$", "")>

There may be a more efficient way to do this (anyone?) but this type of
thing has worked for me.



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: Webmaster [mailto:[EMAIL PROTECTED]]
: Sent: Wednesday, September 11, 2002 12:32 PM
: To: CF-Talk
: Subject: cfdirectory
:
:
: Is there any way to use cfdirectory this way in CF 4.5:
:
: <cfdirectory ACTION="directory action"
:     DIRECTORY="../directory/files">
:
: I know if I do it this way it will work.
:
: <cfdirectory ACTION="directory action"
:     DIRECTORY="c:\directory\files">
:
:
: 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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