Check for locked files
12 Jul 2017Companies work from Excel, Word and other files on network shared folders. More than one user cannot usually work on these files at the same time. Time is lost tracking down who has the file locked.
It can be hard to see who has a file locked. Sometimes Excel or Word shows who. But not always. Other files like shared PDF’s and CAD file types do not help much.
One way to see who locked a file is from the Windows file server as Administrator. Not practical for security reasons.
This tool has two parts:
- A watcher that checks for locked files. The watcher uses a search list for watched files and folders.
- A web server that displays the locked files and who locked them. No need for special access. Just check a web page.
Quick setup
- Clone or download and extract this Github repo to a folder on the file server.
- Make sure NodeJS and npm are installed and on the PATH. Open a command line to the repo location and run npm install to initialize.
- From the same command line start the web server – npm start. By default it runs on port 80 so if that is a problem edit package.json scripts/start. Visit http://fileserver-name.
- In a separate command line start File lock watcher npm run watch [requires Administrator privledges]