Gets the path of the directory that ColdFusion uses for temporary files. The directory depends on the account under which ColdFusion is running and other factors. Before using this function in an application, test to determine the directory it returns under your account.
The absolute pathname of a directory, including a trailing slash, as a string.
GetTempDirectory()
New in ColdFusion MX: On Windows, this function returns the temporary directory of the embedded Java application server. On other platforms, it returns the temporary directory of the operating system.
<h3>GetTempDirectory Example</h3> <p>The temporary directory for this ColdFusion server is <cfoutput>#GetTempDirectory()#</cfoutput>. <p>We have created a temporary file called: <cfoutput>#GetTempFile(GetTempDirectory(),"testFile")#</cfoutput>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt1107.htm