ColdFusion - How to get the temporary directory

GetTempDirectory() - get the temporary directory that coldfusion uses for temporary files

GetTempDirectory.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GetTempDirectory function example: how to get the temporary directory that coldfusion uses for temporary files</title>
</head>

<body>
<h2 style="color:Crimson">GetTempDirectory Function Example</h2>

<cfset TempDirectory=GetTempDirectory()>

<cfoutput>
<b>ColdFusion Tempory Directory:</b> #TempDirectory#
</cfoutput>
</body>
</html>






More ColdFusion examples