actually...
<cfset thisPath=ExpandPath("./")>

is a bit closer to what I am after..... but when used from a subdirectory of 
the site... it returns the subdirectory too. I was hoping to avoid that.



>>> [EMAIL PROTECTED] 22/06/2006 5:14 pm >>>

<cfset thisPath=ExpandPath("/")>
<cfset rootDirectory=GetDirectoryFromPath(thisPath)>

or am I missing something?

----- Original Message ----- 
From: "Scott Thornton" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 22, 2006 12:17 PM
Subject: [cfaussie] Path to the site root directory



Hello,

Is there a programmatical way of returning the root directory of the 
website, regardless of the current page's location within the site?

eg

The site http://mysite/somepage.cfm = c:\mysites\application\
the site http://mysite/admin/somepage.cfm = c:\mysites\application\

Currently this location is stored in the database... but I don't think this 
is the best method....







Scott Thornton, Programmer
Application Development
Information Services and Telecommunications
Hunter-New England Area Health Service
p: +61 02 49213589
m: 0413800242









--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to