Wed, March 14, 2007, 03:50 PM under
Windows |
Vista
While I have previously described
Restart Manager, I never thought to use it in this cool way even though the question definitely is something I have asked myself in the past! Keep reading...
Question: When my application attempts to access a file, I get access-denied errors because the file is in use by another application. In the past, I've used tools from Sysinternals (microsoft.com/technet/sysinternals) to figure out what that other application is, but I'd like to be able to discover this programmatically from within my application. Is there a way to programmatically determine what processes are currently using a specific file?
Answer:
Stephen to the rescue!