# Moving, Renaming, Copying, and Deleting Server Files

With CFFILE, you can create application pages to manage files on your Web server. You can use the tag to move files from one directory to another, rename files, copy a file, or delete a file.

The examples below show static values for many of the attributes. However, the value of all or part of any attribute in a CFFILE tag can be a dynamic parameter. This makes CFFILE a very powerful tool.

Examples of moving, renaming, copying, and deleting server files
Action | Example code
--- | ---
Move a file |
    <CFFILE ACTION="Move"
        SOURCE="c:\files\upload\KeyMemo.doc"
        DESTINATION="c:\files\memo\">
Rename a file |
    <CFFILE ACTION="Rename"
        SOURCE="c:\files\memo\KeyMemo.doc"
        DESTINATION="c:\files\memo\OldMemo.doc">
Copy a file |
    <CFFILE ACTION="Copy"
        SOURCE="c:\files\upload\KeyMemo.doc"
        DESTINATION="c:\files\backup\">
Delete a file |
    <CFFILE ACTION="Delete"
        FILE="c:\files\upload\oldfile.txt">