Question

I have to work with a buggy accounting application that locks the data file and doesnt release the lock when it stops using it. So next person trying to access the file gets Access Denied.

This can be temporarily fixed by deleting the filelock handle with Unlocker, but it has to be done every time, and is very annoying.

Is there a way to configure (Windows 2003 server) to disable file locks on ONE particular file? I found some info on how to disable file locks system-wide but I dont want to do this for the whole server, just ONE file.

Was it helpful?

Solution

I found that Unlocker provides a command-line interface to run it. So I created a batch file that runs unlocker and unlocks this file on demand. Not ideal but its less annoying than other options:

unlocker "C:\Path\File.lck" /S /D

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top