Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy a DBC to another directory
Message
De
09/11/1999 16:09:15
 
 
À
09/11/1999 14:36:24
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00289178
Message ID:
00289273
Vues:
24
Hi Jerry.

>We currently use COPY FILE to copy the DBC, DCT, DCX. However, if someone has the database container opened, the COPY FILE will not work.
>
>We would like to use COPY TO or something similar. That way, if someone has the database in use, we can still copy the files.

You can USE and COPY TO the DBC, except VFP will think the new file is a VFP table rather than a DBC. So, do the following after the COPY TO so it's back to a DBC again:

lnHandle = fopen('mydbc.dbc', 2)
fseek(lnHandle, 28)
fwrite(lnHandle, chr(7))
fclose(lnHandle)

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform