Yep, works. hadn't thought of that one. Thanks, Mark
-----Original Message----- From: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2003 7:52 PM To: CF-Talk Subject: RE: Cgi.script_name How about getdirectoryfrompath(cgi.script_name) ? > -----Original Message----- > From: Mark Leder [mailto:[EMAIL PROTECTED] > Sent: Monday, 14 July 2003 11:49 a.m. > To: CF-Talk > Subject: Cgi.script_name > > Hi all, > > I have a cgi.script_name output as /contact/default.cfm > > How do I strip the characters after the last "/" so I can place in a > var as "/contact/" and use for further processing? > > Thanks, Mark > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4