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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement