<cfset var.path="directory1/directory2/directory3/filename.cfm">
<cfset var.lastdir = ListLast(GetDirectoryFromPath(var.path),"/")>

Duane Boudreau,
Project/Beta Manager, eMPower
Director, Web Technologies
Ektron, Inc.
http://www.ektron.com
5 Northern Blvd, Suite 6
Amherst, NH 03031
Tel: 603-594-0249
Fax: 603-594-0258


> -----Original Message-----
> From: Chris Montgomery [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 20, 2000 1:19 PM
> To: [EMAIL PROTECTED]
> Subject: Getting Last Directory Name from Path
> 
> 
> 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.

Reply via email to