Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP 6 Backup routine problem 1

Status
Not open for further replies.

eric43

Programmer
Apr 29, 2005
94
AU
I am using an excellent backup routine on F12 I found somwhere which contains et al

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
 
Can you put the resource file in another location and then copy it at the bottom of your backup routine?
 
Mike,

Thanks for that.

Without the resource file I appear to have to open all the 'windows' in the Project manager every time I open the project. I like to see the full listings in each tab when I open it as it saves a very great deal of time for me.

Or have I missed something?

Regards

Eric
 

Eric,

No, you're not missing something.

Doing without the resource file only makes sense in the run-time system, that is, when it's installed at the user's site. You wouldn't want to do it in your development environment, because the resource file holds a lot of settings that you might want to persist between sessions -- such as the state of the project manager.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks Mike

I have been talking about my dev environment. Its working well now- quick and easy backup whenever I want it

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top