Copying a file
Posted on 1999-11-18
I need subroutines to do the following:
1. A subroutine called "Backup" which will copy the file "hockey.mdb" to "hockey.bak" (replacing it)
2. A subroutine called "Revert" that will copy the file "hockey.bak" to "hockey.mdb" (replacing it)
3. A function called TestBackup that will read the time and date stamp on "hockey.bak" and return it (as a string); if the file "hockey.bak" doesn't exist, it will return "never"
I am not asking for a fully coded version of all of them...just the parts where I have to manipulate the shell (copy files, check timestamp).
I am without documentation, so I am hoping this is fairly trivial.