getting current filename physical path


/ Published in: ColdFusion
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!--- Get expanded path of the BASE path. --->
  2. <cfset strPath = ExpandPath( "./" ) />
  3.  
  4. <!--- Get the expanded path of the CURRENT template path. --->
  5. <cfset strPath = GetDirectoryFromPath( GetCurrentTemplatePath()) />

URL: http://www.bennadel.com/blog/283-ColdFusion-ExpandPath-And-GetCurrentTemplatePath-.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.