I'm trying to write an application that is consumable by webservices,
and for re-use, it doesn't know where on the server it might exist,
only that the first folder inside the webroot is called "projects".

I am trying desperately to write some code that can tell me the
component path for all the components within the application

e.g  projects.folder.folder.myApplication

Trouble is when I use code such as:

<cffunction name="getComponentPath" access="public" returntype="string">
                <cfset directory = Replace(GetCurrentTemplatePath(),".cfc", "", 
"ALL")>
                <cfreturn Replace(Right(directory, Len(directory)+1 -
FindNoCase("projects\", directory)),"\",".","ALL") & "." />
        </cffunction>

I always end up with the path to calling application, which happens to
also be a CFC.  Is there a way to do this?
-- 
Neil
http://www.theservicefactory.com

Get Firefox - http://www.getfirefox.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189810
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to