Howabout:

<cfset MyDirectory=ListLast(GetDirectoryFromPath(GetCurrentTemplatePath()),
"\")>

Is that what you are talking about?

Tyler Silcox
email | [EMAIL PROTECTED]

----- Original Message -----
From: "Tony Gruen" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 5:43 PM
Subject: Directory Name


Hello List members,
I am trying to set the current directory name as a local variable. Just the
dir name mind you, not the full path. The directory names within the app
will be varying lengths but always at the end of teh same tree.

for example
D:\webroot\accounts\8888 would have a local variable in the application.cfm
of 8888
D:\webroot\accounts\528004-4 would have a local variable int he
application.cfm of 528004-4

I have been trying to creatively devise a way to use CFDIRECTORY to do this
but I have only been able to work myself up into a mind knot. Has anyone had
to do this? Any insight? I would greatly appresiate any input.

Tony Gruen








______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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