I'm having a problem on some code I've migrated from CF 4.5 -> CF MX:

<CFSET #Root# = Left(GetTemplatePath(), FindNoCase(Replace(#CGI.SCRIPT_NAME#,"/","\","ALL"), GetTemplatePath()))>

     <CFSET thisPath= ExpandPath("../*.*")>
     <CFSET thisDirectory= GetDirectoryFromPath(thisPath)>

<cfset directory_temp = Replace("#thisDirectory#", "#root#", "","ALL") >
<cfset company_to_use = "/"&left("#directory_temp#",evaluate(len("#directory_temp#")-1))>


All I want is for this to give me:

/mycompany

from a path of:

/webroot/www.somewhere.com/mycompany/html/

It worked fine in CF4.5 but is broken in MX . . . any suggestions would be greatly appreciated~!!!!

-- Bradley Miller


=========================================================
Kansas City ColdFusion User Group's website & listserv is hosted through the generous support of Clickdoug.com
To send email to the list, email [EMAIL PROTECTED]
To subscribe or unsubscribe, send an email to [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1. ======================================================

Reply via email to