I've often had the problem, where a file is in use by an application somewhere on the network, and we can't find out who - as it needs to be deleted/renamed/opened properly etc.
The way to do this:
On the server with the file shared:
- Go to start > Run > type compmgmt.msc
- Under 'System Tools' expand 'Shared Folders'
- Go to 'Open Files'
That lists all the files in use by network users, right click on them and click 'Close Open File' to close it!