Possible Duplicate:
Tool to determine what has locked a file
On Windows 7 I am trying to delete a directory in Windows explorer, however when I try, it tells me a file in that directory is being "used by a process" and therefore cannot be deleted at this time.
How can I find out which process is using the file so I can terminate it in the task manager?