I'm couldn't find, how I can unlock or delete locked folder with all subfolders via command-line interface.
I'm working on the project. For example, my sources folder —
sources, output folder —
output. I view files and/or make test changes in
output → I add changes to
sources → I run build command (
build, for example), which should overwrite
build doesn't start correctly:
Folder In Use
The action can't be completed because the folder or a file in it is open in another program
Close the folder or file and try again
Therefore, before each
build starting I opened LockHunter → unlocked
output → ran
It would be nice, if would be possible run command for unlocking or deleting
build, that I don't need manually run LockHunter every time, spending time on it.
I created a folder
KiraUnlockCLI → opened command prompt → moved to
KiraUnlockCLI in it (
cd KiraUnlockCLI) →
I need unlock or delete
Any type of program can lock
outputfolder and/or files in it, examples:
- Windows Explorer
- Command prompt
- Text editor
- Images viewer
Solution must unlock folders, not files solely. I can open in third-party programs any files in
outputand its subfolders.
- Relative paths must be supported.
outputis located in different directories for me, another developers and Continuous Integration (Travis CI, AppVeyor).
5. Not helped
5.1. Relative paths
LockHunter doesn't support relative paths.
5.2. Folders support
These programs can unlock files, not folders.
5.3. Specific PID
- Handle — PIDs required for unlocking. But I need kill processes with any PID; see 4.1 item of my question.
I couldn't find any information about command-line interface of these programs:
5.5. Doesn't work
rm -rf KiraUnlockCLI(
/usr/bin/rm: cannot remove 'KiraUnlockCLI`: Device or resource busy
OpenedFilesView — no effect after this command:
openedfilesview /closefolder closeprocess killprocess KiraUnlockCLI
No Locking handle found.
However Unlocker can help you deal with this object.
Choose the action you want to perform on the object.
6. Don't offer
- I'm know side effects; please, don't tell me, that I don't need unlock folder.
I read these SuperUser questions and answers to them before post my question:
I checked programs from this list on the Unlocker site.