Macromedia coldfusion 4.5-cfml language reference User Manual
Chapter 2: ColdFusion Functions
367
GetTempDirectory
Returns the full path name of a directory, including the trailing slash. The directory
that is returned depends on the account under which ColdFusion is running as well as
a variety of other factors. Before using this function in an application, test to see the
directory it returns under your account.
that is returned depends on the account under which ColdFusion is running as well as
a variety of other factors. Before using this function in an application, test to see the
directory it returns under your account.
See also
GetTempFile
.
Syntax
GetTempDirectory()
Example
<!--- This example uses GetTempDirectory to find
the temporary directory, and GetTempFile to place
a dummy file in that directory --->
<HTML>
<HEAD>
<TITLE>
GetTempDirectory Example
</TITLE>
</HEAD>
the temporary directory, and GetTempFile to place
a dummy file in that directory --->
<HTML>
<HEAD>
<TITLE>
GetTempDirectory Example
</TITLE>
</HEAD>
<BODY>
<H3>GetTempDirectory Example</H3>
<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 server is <CFOUTPUT>#GetTempDirectory()#</CFOUTPUT>.
<P>We have created a temporary file called:
<CFOUTPUT>#GetTempFile(GetTempDirectory(),"testFile")#</CFOUTPUT>
</BODY>
</HTML>
</HTML>