When I try to delete a file occurs the following exception:
The process cannot access the file \'\' because it is being used by another process.<
Another way is to find all open handles to the file and close them forcibly.
Works nice for you, bad for any apps which were using the file.
Could try that in UI with SysInternals ProcessExplorer.