CFFILE ACTION="Rename"  
 
 

Use CFFILE with the Rename action to rename a file that already exists on the server.

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

SOURCE

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

DESTINATION

Required. The new name for the file (with directory location).

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.

 
 
  Example  
 

The following example renames the file keymemo.doc to oldmemo.doc:

<CFFILE ACTION="Rename" 
    SOURCE="c:\files\memo\keymemo.doc" 
    DESTINATION="c:\files\memo\oldmemo.doc">



 
 
BackUp LevelNext
 
 

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