My task is running at night, and sometimes some files (dbf) can stay opened. Then my task used to copy (and overwrite) a file was failed. Is exist a way, using WinAPI (or others) to kill the process or cut the link between an application and a file located on the same server as my task?