Okay, here's an easy one...Getting the directory I'm sitting in...

2006-04-25 Thread Jeff Small
Like, say you were bar.cfm and you were in the foo directory. I want to get foo. Likewise, if you were in the bar directory, and you were foo.cfm I'd want to see bar. -- Jeff Small LHWH Advertising Myrtle Beach, SC 29577 843-448-1123 Ext 254

RE: Okay, here's an easy one...Getting the directory I'm sitting in...

2006-04-25 Thread Ben Forta
cfset curdir=ListLast(GetDirectoryFromPath(GetCurrentTemplatePath()), /\) --- Ben -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 1:38 PM To: CF-Talk Subject: Okay, here's an easy one...Getting the directory I'm sitting in... Like, say you

Re: Okay, here's an easy one...Getting the directory I'm sitting in...

2006-04-25 Thread Rob Wilkerson
getDirectoryFromPath()? Is that what you're asking? Maybe getDirectoryFromPath ( getCurrentTemplatePath() )? You'd have to parse for the last node in the directory path, but this would get you there. Hopefully I understood the question correctly... On 4/25/06, Jeff Small [EMAIL PROTECTED]

Re: Okay, here's an easy one...Getting the directory I'm sitting in...

2006-04-25 Thread Mark Drew
#ListGetAt(expandPath(.), ListLen(expandPath(.), \), \)# On 4/25/06, Jeff Small [EMAIL PROTECTED] wrote: Like, say you were bar.cfm and you were in the foo directory. I want to get foo. Likewise, if you were in the bar directory, and you were foo.cfm I'd want to see bar. -- Jeff Small

Re: Okay, here's an easy one...Getting the directory I'm sitting in...

2006-04-25 Thread rhymes with 'loud'
cfset currentdir = expandpath(.) Like, say you were bar.cfm and you were in the foo directory. I want to get foo. Likewise, if you were in the bar directory, and you were foo.cfm I'd want to see bar. -- Jeff Small LHWH Advertising Myrtle Beach, SC 29577 843-448-1123 Ext 254

Re: Okay, here's an easy one...Getting the directory I'm sitting in...

2006-04-25 Thread Russ Michaels
ExpandPath('./') Will give u the current path. Russ -Original Message- From: Jeff Small [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Date: Tue, 25 Apr 2006 13:37:44 -0400 Subject: Okay, here's an easy one...Getting the directory I'm sitting in... Like, say you were bar.cfm

Re: Okay, here's an easy one...Getting the directory I'm sitting in...

2006-04-25 Thread Jeff Small
cfset curdir=ListLast(GetDirectoryFromPath(GetCurrentTemplatePath()),/\) --- Ben Sweet, thanks. Go off to lunch to clear head. Return with handy little code snippet. Gracias. ~| Message: