This zip file contains a VB.NET project showing how to test to see if a file is open or not (meaning it is locked by another process on the system). It accomplishes this by attempting to obtain exclusive access to the file.