UnlockFile allows to unlock a file by shutting down the applications that lock the file.
- Install .NET Core 2.1: https://www.microsoft.com/net/download/Windows/run
- Install the UnlockFile:
dotnet tool install --global UnlockFile
UnlockFile "c:\test\file.txt"
UnlockFile RegisterShellMenu --run-as-admin --pause