Andy,

CF4.5:
<cfset filename = GetFileFromPath(Path)>

CF4.01
<cfset filename = ListLast(Path, "\")>

HTH,
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: cf kaizen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 19, 2000 12:41 PM
> To: [EMAIL PROTECTED]
> Subject: Strip directory path to get just file name
> 
> 
> Hi All,
> 
> If my value in a string is 
> 
> c:\webshare\wwwroot\site\filename.cfm
> 
> , how I just strip it down so I can dump filename.cfm
> into a variable?
> 
> I am thinking that I should access the above string
> from the right side, looping through each character
> until I get to the first "\". However, I don't know
> where to start with the code (and, I left both cfwacks
> books at home :(
> 
> Any help is very much appreciated!
> 
> Thanks!
> Andy
> 
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
> ------------------------------------------------------------------
> ------------
> 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