Click to See Complete Forum and Search --> : Copy a random file


August 18th, 1999, 10:42 PM
With VB6 I have large random data files. How can I include a routine in which the user simply clicks to make a copy of his file in a "Backup" folder.
(ie kill "c:\vb\backups\testfile.Dat": copy "c:\vb\testfile.Dat" to "c:\vb\backups\testfile.Dat")
...so that there is always a current backup copy in case of major errors.

email foxfire@sympatico.ca

Lothar Haensler
August 19th, 1999, 01:39 AM
use the FileCopy statement

filecopy "c:\vb\testfile.Dat", "c:\vb\backups\testfile.Dat"