Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backup and Import to\from an Archive Folder
Message
De
10/10/2003 09:49:21
 
 
À
10/10/2003 09:25:48
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00837360
Message ID:
00837365
Vues:
26
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform