How can I determine whether a file is in use via VBScript or a batch file? It can be a separate utility.
I've had a look at Handle but sometimes the handles don't line up with filenames, e.g. some DLLs, and it doesn't do partial searches (though I could presumably use some of the text processing utils on its full output to handle that side of things).