Obviously, there are a few ways to do it. Most I've seen use a listgetat.
Personally, I just use a nice and simple
#getdirectoryfrompath(gettemplatepath())#
That tends to work just fine for me.
Stuart Duncan.
At 12:19 PM 6/20/00 -0500, you wrote:
>Howdy,
>
>What's the best way to get the last directory name from a path? For
>example, in this path:
>
>directory1/directory2/directory3/filename.cfm
>
>I want to extract just directory3.
>
>Any help much appreciated.
>
>Chris Montgomery [EMAIL PROTECTED]
>:: Web development/Consulting http://www.astutia.com ::
>:: Allaire Consulting Partner/ NetObjects Reseller ::
>:: 210-490-3249/888-745-7603 Fax 210-490-4692 ::
>
>------------------------------------------------------------------------------
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.