

While in Safe Mode, use File Explorer to locate and delete the files that were previously locked, then simply restart your device as you would normally to exit Safe Mode. On "Startup Settings," press F4 to enable Safe Mode. Under "Advanced Startup," click the Restart now button. You can either disable the app from loading at startup, or you can boot into Safe Mode to unlock and delete the file. However, if the application has a service that loads during startup, it might keep locking a file as soon as you sign in. Usually, when you come across a locked file, you can simply restart your device to unlock it. Once you complete these steps, you can go ahead and safely delete or modify the unlocked file. Important: If the file is being used by more than one process, repeat the steps to close all handles.Select the file from the search result.īehind the search window, in "Process Explorer," right-click the locked file, and select Close Handle to unlock it.Type the name of the locked file in the field, and click the Search button. ( You can refer to these instructions if you need additional help on how to do this task.)ĭouble-click the procexp.exe if you're running a 32-bit version of Windows 10 or procexp64.exe if you're running a 64-bit version10 to launch the app.Ĭlick on File, and select the Show Details for All Processes option.Ĭlick on Find, and select the Find Handle or DLL option.

Extract the content inside the ProcessExplorer.zip compressed folder.Download Process Explorer from this Microsoft website.

If you need to unlock a file currently being used by a program or system process and you can't restart your device, you can use these steps: How to unlock files using Process Explorer How to unlock files using Process Explorer.It requires minimal knowledge of git, and doesn't disturb the commit history. Not the sexiest, or most git-centric solution, and definitely a "manual" reset/reversion, but it works.

Here’s the step by step tutorial for you. And the file-path, file-path1, file-path2 are the full path location of the files that needs to be deleted. Tell your clients to pull the latest, happily watch it work with the old version in place. Remove-item file-path, file-path1, file-path2 Here, Remove-item is the required command to tell the PowerShell that a particular file must be deleted/removed. Open both files in your favorite text editor.Ĭopy n' paste code from to myFile.js, and save.Īgain view the log, and confirm that your file is properly in place. A simple, easy, hands-on, way to get you out of hot water, especially if you're not so comfortable with git:Ĭommit 1023057173029091u23f01w276931f7f42595f84f
