CFFILE ACTION="Copy"  
 
 

The CFFILE tag can be used to copy a file from one directory to another on the server.

 
 
  Syntax  
 
<CFFILE ACTION="Copy"
    SOURCE="file_name"
    DESTINATION="directory_name"
    ATTRIBUTES="file_attributes">

SOURCE

Required. The file to copy (with directory location).

DESTINATION

Required. The directory where the copy of the file will be saved. This must include the trailing backslash (slash on UNIX).

ATTRIBUTES

Optional. A comma-delimited list of file attributes to be set on the file being copied. 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.

 
 
  Example  
 

The following example saves a copy of the keymemo.doc file in the c:\files\backup\ directory:

<CFFILE ACTION="Copy" 
    SOURCE="c:\files\upload\keymemo.doc" 
    DESTINATION="c:\files\backup\">



 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.