简体   繁体   中英

How to stop Windows server from locking a file?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM