I am using an excellent backup routine on F12 I found somwhere which contains et al
Unfortunately when I use a resource file the backup stops with an error in the script file because foxuser.dbf is still open.
It copies files in alpha order and I have to copy all files after 'foxuser.dbf' in the folder manually each time.
Is there a way to overcome this?
Thanks
Eric
Code:
CLOSE ALL DATABASES
lcTimeStamp = 'etc' && add your own
lcDevDir = 'etc' && add your own
lcBackupDir = 'C:\Backup\' + lcTimeStamp
fso= CREATEOBJECT ('Scripting.FileSystemObject')
fso.CopyFolder (lcDevDir, lcBackupDir)
fso = null
?'Finished'
Unfortunately when I use a resource file the backup stops with an error in the script file because foxuser.dbf is still open.
It copies files in alpha order and I have to copy all files after 'foxuser.dbf' in the folder manually each time.
Is there a way to overcome this?
Thanks
Eric