How can one programmtically determine what process or user is using a particular file? I want my program to replace and/or delete some files that are in use when they should not be in use.