>If it happens on a temporary file its likely that whatever network or OS has the file open 'believes' that a different process has the file already open. If you are absolutely sure that you are
always closing the files before opening them check with the Network OS that there isn't some buffering problem. If its that you are creating temporaries, closing then deleting them try delaying deleting the files after closing them for as long as possible.
Thanks, I think my problem is related to Dynazip which, based on a specific situation, does not finish the process. So, because Dynazip didn't finish the zip of the DBF, the ERASE will not work as Dynazip has the lock on the file.
I'll look to see if I can have a Dynazip command to kill the last Dynazip process so the file can be accessible again.