I have a set of nightly reports.
Sometimes I get the exception:
The process cannot access the file because it is being used by another proce
Use a tool like Process Explorer or Process Monitor.