#cgi.script_name# will only work if there is only one cfm file being executed... but if there are <CFTAGS> or <CFMODULE/CFINCLUDE> then using #cgi.script_name# won't work on the included files. Try using the function GetCurrentTemplatePath()
<CFOUTPUT>
[COLOR=666666]<!--- Full Path Name of current file --->[/color]
#GetCurrentTemplatePath()#[COLOR=000080]<BR>[/color]
[COLOR=666666]<!--- Treat the full path as a list with "\" as the
deliminator, and get the last item in the list for
the file name --->[/color]
#ListLast(GetCurrentTemplatePath(), "\")#
</CFOUTPUT> - tleish