Have a look atExpandPath( /) On 6/22/06, Scott Thornton [EMAIL PROTECTED]
wrote:Hello,Is there a programmatical way of returning the root directory of the website, regardless of the current page's location within the site?
egThe site http://mysite/somepage.cfm = c:\mysites\application\the site
cfset thisPath=ExpandPath(/)
cfset rootDirectory=GetDirectoryFromPath(thisPath)
or am I missing something?
- Original Message -
From: Scott Thornton [EMAIL PROTECTED]
To: cfaussie@googlegroups.com
Sent: Thursday, June 22, 2006 12:17 PM
Subject: [cfaussie] Path to the site root
put this in your application.cfm
application.path = getDirectoryFromPath( getCurrentTemplatePath() );
On 6/22/06, Scott Thornton [EMAIL PROTECTED] wrote:
Hello,Is there a programmatical way of returning the root directory of the website, regardless of the current page's location within the site?