Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a DBC to another directory
Message
From
09/11/1999 16:09:15
 
 
To
09/11/1999 14:36:24
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00289178
Message ID:
00289273
Views:
25
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
Map
View

Click here to load this message in the networking platform