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
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
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]
#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
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
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
cfset
curdir=ListLast(GetDirectoryFromPath(GetCurrentTemplatePath()),/\)
--- Ben
Sweet, thanks. Go off to lunch to clear head. Return with handy little code
snippet.
Gracias.
~|
Message:
7 matches
Mail list logo