Copies the source file to the destination file. function CopyFileTo(const Source: string; const Destination: string): Boolean;Parametersconst Source: stringSource file name. const Destination: stringDestination file name. ReturnsBoolean - True if the file is copied, False on error. DescriptionCopyFileTo is a function used to copy the file specified in Source to the file specified in Destination. CopyFileTo will return False if the file in Destination already exists. CopyFileTo encapsulates the platform-specific calls needed to perform the file copy operation. On the Windows platform, this is the Win32 API function CopyFile. On the Linux platform, CopyFileTo uses a TFileStream instance to create the destination file.
COPY DIR 没做过。做过COPY FILES
function CopyFileTo(const Source: string; const Destination: string): Boolean;Parametersconst Source: stringSource file name.
const Destination: stringDestination file name.
ReturnsBoolean - True if the file is copied, False on error.
DescriptionCopyFileTo is a function used to copy the file specified in Source to the file specified in Destination.
CopyFileTo will return False if the file in Destination already exists.
CopyFileTo encapsulates the platform-specific calls needed to perform the file copy operation. On the Windows platform, this is the Win32 API function CopyFile. On the Linux platform, CopyFileTo uses a TFileStream instance to create the destination file.
FileName是要拷贝的文件;FileName1是拷贝后的文件名称
True是覆盖