Here's a stab in the dark, but if you have SET RESOURCE ON, the FOXUSER files will be active. A blind copy of all DBFs and FPTS will try to copy thse files and generate the error.
>As part of an archiving process I have a form that receives a destination directory and a time range
>
>I use mkdir() to create the desired directory tree, then COPY FILE ... to move the files
>
>copy .exe version, configs, ini
>copy the dbc, dcx, dct
>copy the dbf, cdx, fpt
>
>when I run the form from the form designer, it all works correctly, when I call it from the application menu the three database files will not copy and give me a file in use error. All of the other files copy correctly without complaint.
>
>I do not have anything in the data environment in the form, nothing is open in any datasession, no database is opened, nothing is used. I CLOSE ALL and so on. wait windows, watch windows, I cannot find anything. Nothing is open
>
>What am I missing??
>
>tia
>
>Al Allison
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05