Saturday, April 25, 2009

copy and move in ColdFusion file

You can use the cffile tag to move a file from one location on the server to another.
You can use the cffile tag to create a copy a file on the server.

Example of Moving a File
The following code moves the source file to the location specified with the destination attribute.

source="C:\docs\accessLog.txt"
destination="C:\docs\accessLog_backup.txt">

Example of Copying a File
The following code copies the source file to the location specified with the destination attribute.

source="C:\docs\accessLog.txt"
destination="C:\docs\accessLog_backup.txt">

Source : http://www.quackit.com/coldfusion/tutorial/coldfusion_move_file.cfm

No comments:

Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory