Hi Mike, You can use LISTLAST(directoryVariable,'\').
Mahmut Basaran ~~oO Measure Twice Cut Once Oo ~~ ----- Original Message ----- From: "Mike Alberts" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, December 31, 2002 5:03 PM Subject: Getting Just A Directory Name > Hello All, and Happy New Year, > > I'm sure this is probably a basic question but .... > > (CF5 on Windows) > > Given the following (psuedo) code: > > cfset Request.ThisDirectory = > #GetDirectoryFromPath(GetCurrentTemplatePath())# > > which returns something like: > > D:\Server\webroot\www.somesite.com\somedirectory\ > > >From here, what is the easiest way to get just "somedirectory" without the > path and slashes? > > Please CC me directly as I get the digest version of the list. > > TIA, > > Mike > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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.

