file-unlocker-for-windows icon indicating copy to clipboard operation
file-unlocker-for-windows copied to clipboard

Feature: Support for folders (to prevent the 'Folder In Use' error)

Open shcmack opened this issue 2 years ago • 4 comments

When trying to rename a folder that contains file(s) that are currently open, you get the error: "This action can't be completed because the folder or a file in it is open in another program". That happens all the time, and USB devices that won't undock because a process is still paired with it. This utility would be perfect if it could handle these cases too, because the way it is integrated and works is great! :)

shcmack avatar Jan 14 '23 20:01 shcmack

Very important feature 🙄

scratchy90 avatar Mar 24 '23 06:03 scratchy90

I second this, it's what all the other tools are missing

Maxhem2 avatar Oct 04 '23 22:10 Maxhem2

Hi, do I understand correctly that what you'd expect from such a feature would be that when renaming a folder that contains file(s) currently open, instead of receiving the error "This action can't be completed because the folder or a file in it is open in another program," it would unlock these files (= automatically closing all processes that block the operation) and then rename the folder as originally desired?

marianpekar avatar Oct 08 '23 11:10 marianpekar

Hi, do I understand correctly that what you'd expect from such a feature would be that when renaming a folder that contains file(s) currently open, instead of receiving the error "This action can't be completed because the folder or a file in it is open in another program," it would unlock these files (= automatically closing all processes that block the operation) and then rename the folder as originally desired?

Yes, spot on

Maxhem2 avatar Oct 08 '23 14:10 Maxhem2

Unfortunately, the requested feature would require the application to run in background all the time and that is too much outside the original design. Please feel free to use any part of the code in this repository as a basis or inspiration for a new application that would be designed in a way that it can have the requested feature. For doing so, this might be useful https://learn.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=net-8.0

marianpekar avatar Aug 30 '24 13:08 marianpekar