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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only