GetTempDirectory

Description

Returns the full pathname of a directory, including the trailing slash. The directory that is returned 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.

Category

System functions

Syntax


GetTempDirectory() 

See also

GetTempFile

Example

<!--- This example uses GetTempDirectory to find the 

temporary directory, and GetTempFile to place a dummy file in it --->

<html>

<head>

<title>

GetTempDirectory Example

</title>

</head>



<body>

<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>



</body>

</html> 



Banner.Novgorod.Ru