52
CFML Language Reference
Example
The following example moves the
keymemo.doc
file from the
c:\files\upload\
directory to the
c:\files\memo\
directory on Windows:
<CFFILE ACTION="Move"
SOURCE="c:\files\upload\keymemo.doc"
DESTINATION="c:\files\memo\">
Note
On Windows, you must include the backward slash (\) after the
destination directory name if you do not specify a file name. In this
example, the specified destination directory is "memo. "
CFFILE ACTION="Rename"
Use CFFILE with the Rename action to rename a file that already exists on the server.
Syntax
<CFFILE ACTION="Rename"
SOURCE="full_path_name"
DESTINATION="full_path_name"
ATTRIBUTES="file_attributes">
SOURCE
Required. The full path name of the file to rename.
DESTINATION
Required. The full path name, including the new name, of the file.
ATTRIBUTES
Optional. A comma-delimited list of file attributes to be set on the file being
renamed. The following file attributes are supported:
•
ReadOnly
•
Temporary
•
Archive
•
Hidden
•
System
•
Normal
If ATTRIBUTES is not used, the file’s attributes are maintained. If Normal is
specified as well as any other attributes, Normal is overridden by whatever other
attribute is specified.
Individual attributes must be specified explicitly. For example, if you specify just
the ReadOnly attribute, all other existing attributes are overwritten.
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...