Create/Recover File Backups (Class Module)
Category:Files and Directories
Author:Md. Ashfaqur Rahman Pallab
Version Compatibility: Visual Basic 6
A simple class for Backup and Recover of files. Set the File name & path to the SourceFile property of the class, and the name & path where the backup copy will be saved to BackupFile property. Now you can save the backup by calling Backup method, and Recover the file from backup by calling Recover method. SourceExists and BackupExists properties can be used to check if the source file or backup file exists in the disk. Sample app that uses the class is included. A sample application is included with the class. The class code is commented well for your better understanding.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.