How to determine which process is holding a file in Windows

You can use the Process explorer tool : http://technet.microsoft.com/en-us/sysinternals/bb896653