Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backup and Import to\from an Archive Folder
Message
From
10/10/2003 09:49:21
 
 
To
10/10/2003 09:25:48
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00837360
Message ID:
00837365
Views:
25
>I would like to save all my data files in an archive folder so that each backup folder has a distinct name within the archive folder. I would then like to be able to import any of the backups based on the selection made by the user.
>
>To backup I could copy the current data folder to the Archive folder then rename it.
>
>To import I could first delete the existing data folder, copy the selected backup folder to the app folder, and rename it.
>
>There must be a better way. Does anyone have any suggestions.

Michael,

There's a download 'folder related api'

you can then use
=FolderCopy(SourceFolder, DestinationFolder)
It syncs the DestinationFolder with the SourceFolder including subfolders, deleting files/folders as needed and copying changed/new files/folders

There may be better ways.

I use this a lot

Of course, databases must be closed prior to copying
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform