JCL Help:FileCopy

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Copies a file.


Pascal

 function FileCopy(const ExistingFileName: string; const NewFileName: string; ReplaceExisting: Boolean = False): Boolean;


Parameters

Parameters Description
const ExistingFileName: string The existing file.
const NewFileName: string Specifies the name of the new file, or name of a directory where the copy will be created.
ReplaceExisting: Boolean = False Specifies how to proceed if a file of the same name as that specified by NewFileName already exists. If this parameter is False and the new file already exists, the function fails. If this parameter is True and the new file already exists, the function overwrites the existing file and succeeds.


Return Value

If the function succeeds, the return value is True; False otherwise


Description

The FileCopy function copies an existing file to a new file.


About

Unit

JclFileUtils


Donator

Robert Rossmair


Platforms

Windows Unix


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page