>Hi!
>
>I have a program for copy one database, When i use it, the first time it works fine, but if i try for a second time, i get the "File is in use" message in the line with the command COPY FILE 'mydatabase.dbc' TO (wk_path +'mydatabase.dbc')
>
>I think my database is closed, but maybe it isn't.
>I'm using the CLOSE DATABASES command, it is enough?
>I can see the tables are closed, what about the dbc file?
>How can i be sure if the file was released?
>
>Thanks for your help
Perhaps you have it open in the Project Manager. You don't need to close the Project Manager; just select the database, and click on the "close" button, in the right part of the window.
In the standard toolbars, there is one place where it shows you the currently selected database; click there to see whether the database is open (but not selected).
This is for the current datasession; if you have datasessions that didn't close completely (for instance, some form is still running, or had an error when running), you may have open datasessions. Use the SET command to check for datasessions.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)