Determining the document server file path in ColdFusion

The following example shows how you can determine the server file path of a ColdFusion template by using the #CGI# object.

<cfoutput>#CGI.CF_TEMPLATE_PATH#</cfoutput>

The preceding code produces the following output:

C:\ColdFusion9\wwwroot\cfexamples\index.cfm

Leave a Reply

Your email address will not be published.