JCL Help:FileBackup

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Backup file by creating a copy of the file with a backup file extension (*.~*).


Pascal

 function FileBackup(const FileName: string; Move: Boolean = False): Boolean;


Parameters

Parameters Description
const FileName: string The name of the file to backup.
Move: Boolean = False If set to True, the original file is renamed to the backup file. Default is False.


Return Value

True on success, False otherwise. If the function fails, call GetLastError to to get extended error information, or RaiseLastOSError to pass the information on to the user.


Description

Backup file by creating a copy of the file with a backup file extension (*.~*).


See Also

FileRestore


About

Unit

JclFileUtils


Donator

Jean-Fabien Connault


Contributors

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