
This code allows you to close the process(es) that keep a file locked, by simply specifying the locked file. This is similar to what Unlocker, ForceDel, WhoLockMe and UnlockIt do. I'm not taking credit for this code, because I downloaded it myself from a Chinese site and only removed the unnecessary code and created the sample project. All credits go to the original author. Have fun with it.