I have finally finished my wild idea that I discussed here Wild idea: custom column and dialog to show what locks a file
Description
This script provides 2 custom columns, Locked and Locked by. They show whether a folder is locked by any processes and which processes currently lock it.
It also has a dialog that shows the full list of processes that lock a particular file or folder:
What does it mean "file is locked"?
File is locked in case:
- A process opens a file. For example, you open a PDF file with an Adobe PDF reader. While Adobe PDF Reader is open, you can't remove the PDF file.
- A process loads a DLL. In this case, this DLL can't be removed until the process is terminated.
- A process loads a file into memory (memory map). For example, a console command like
moremaps the file into memory to show its content.
Note: Programs like VSCode and other text editors don't lock the files that they use because they read them into memory and then close the file. This is why you can remove a text file that is opened in such text editors.
What does it mean "folder is locked"?
In this script, the folder is locked if any file or folder inside it is locked. Basically, it means "you can't remove this folder".
If you open a command prompt inside a folder, the folder itself gets locked even if it is empty.
How to use
Please refer to the "How to use" section in the readme to learn how to use it:
DirectoryOpus-FileLockingInfo-columns-and-dialog




