function in <cfif> outputs as text
Trival problem I'm
sure but I've been going round and round with it...
I'm trying to add an extension to an existing file, but instead of executing the FileMove() function it spits it out as text. I've tried a few variations but I'm not getting anywhere with it.
<cfset fileName = "c:\blahblah">
<cfif FileExits(fileName)>
FileMove("#fileName#","#fileName#.txt")
</cfif>
