VB6Runtime / Library / Statements / file_copy

VB6 Library Reference

VB6 FileCopy statement syntax: - FileCopy source, destination Copies a file. The FileCopy statement syntax has these named arguments:

Part Description
source Required. String expression that specifies a file name. May include directory or folder, and drive.
destination Required. String expression that specifies a file name. May include directory or folder, and drive.

Remarks

Examples

FileCopy "C:\SOURCE.TXT", "C:\DEST.TXT"
FileCopy oldFile, newFile
FileCopy App.Path & "\data.dat", "C:\Backup\data.dat"

Reference

← Back to Statements | View all functions