首页 > lang > copy 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
COPY
COPY SourcePath TO DestinationPath

Copies a file from SourcePath to DestinationPath.

The destination path does not need to have the same name as the source path.

Note that you cannot copy directories recursively with this function.

Example

' Save the gambas configuration file
COPY User.Home &/ ".config/gambas/gambas.conf" TO "/mnt/save/gambas.conf.save"

错误

消息说明
File already exists (38) The destination file already exists.

This instruction internally uses the functions OPEN, READ, WRITE and CLOSE. So it can raise any of their errors.

参见

File & Directory Functions, OPEN, READ, WRITE, CLOSE