目录

# FileCopy 语句

复制文件。

## 语法:

    FileCopy Source As String, Destination As String

## 参数:

Source: Any string expression that specifies the name of the file that you want to copy. The expression can contain optional path and drive information. If you want, you can enter a path in URL notation.

Destination: Any string expression that specifies where you want to copy the source file to. The expression can contain the destination drive, the path, and file name, or the path in URL notation.

只能使用 FileCopy 语句复制没有打开的文件。

### 错误代码:

5 无效的过程调用

76 未找到路径

## 示例:

    Sub ExampleFileCopy
        FileCopy "c:\autoexec.bat", "c:\Temp\Autoexec.sav"
    End Sub

请支持我们!