“File in use” error on Windows 10 [Fix]

11 minute read

The File in use error message usually appears when you try to delete a certain file while it’s being used by a different application or a user. This can be an annoying error, so today we’re going to show you how to fix it on Windows 10.

“File in use” error, how to fix it?

Fix – “File in use” error

Solution 1 – Close all running applications

If you’re getting the File in use error, it’s most likely that the file is being used by a different application. Sometimes, certain apps can use files in the background and cause this error to appear. To fix the issue, be sure to close all running applications and try to delete the file. In addition, restart your PC and try to delete the file again.

If that doesn’t work, you might want to try moving all other files to a different folder. After doing that, try to delete the folder that has the problematic file in it. Lastly, you can try restarting File Explorer. To do that, follow these simple steps:

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. When Task Manager opens, navigate to Processes tab. Locate Windows Explorer on the list, right click it and choose End Task.
  3. Once Windows Explorer closes, select File > Run a new task.
  4. The Create new task window will now appear. Enter explorer and click OK to start Windows Explorer again.

Once Windows Explorer starts, try to delete the file again. If that doesn’t work, you can try to terminate the process that’s related to the problematic file. For example, if you can’t delete a PDF file, try terminating your PDF application from Task Manager.

Solution 2 – Try to delete the file from Safe Mode

If you can’t delete a file due to the File in use error, you might want to try removing it from Safe Mode. To start Windows 10 in Safe Mode, do the following:

  1. Click the Start button.
  2. Now click on Power button. Hold the Shift key on your keyboard and choose the Restart option from the menu.
  3. Once your PC restarts, you’ll see a list of options. Select Troubleshoot from the menu.
  4. Select Advanced options > Startup Settings and click the Restart button.
  5. A list of options will appear. Choose any version of Safe Mode by pressing the appropriate key.

Once the Safe Mode starts, try to delete the file again.

Solution 3 – Use third-party applications to remove the file

According to users, you might be able to fix File in use error simply by using a third-party tool. If you have problems removing files, you might want to try MoveOnBoot, FileASSASSIN or FilExile. Several users also recommended tools such as Long Path Tool or Unlocker. All these tools are completely free to use, so you should be able to fix the problem without issues.

Solution 4 – Use Command Prompt

If you don’t want to rely on third-party solutions to fix this problem, you can use Command Prompt instead. To fix this problem using Command Prompt, you need to do the following:

  1. Open Command Prompt as administrator. To do that, press Windows Key + X to open Win + X menu and choose Command Prompt (Admin).
  2. Once the Command Prompt opens, find the problematic file, hold the Shift key, and right-click it. Now choose Copy as path from the menu.
  3. In Command Prompt, enter del and press Ctrl + V to paste the file path. Don’t run the command yet.
  4. Use Task Manager to close Windows Explorer. We explained how to do that in Solution 1, so be sure to check it out. In order to successfully remove the file, it’s important not to restart Windows Explorer.
  5. Switch back to Command Prompt and press Enter to run the command that you entered in Step 2.
  6. After the command is executed, you can close Command Prompt and restart Windows Explorer.

Solution 5 – Change the file extension of the problematic file

According to users, you might be able to fix this problem simply by changing the file extension of the problematic file. In order to do that, first you need to turn on the option to show file extensions. To do that, follow these steps:

  1. Open File Explorer.
  2. Click the View tab and check File name extensions option.
  3. After doing that, you need to find the problematic file, select it and press F2 on your keyboard.
  4. Change the file extension to .txt or any other extension.
  5. A warning message will appear. Click Yes.

After you change the file extension, try to delete the file again.

Solution 6 – Switch to Details view

According to users, the File in use error can appear due to your thumbnails. Sometimes, Windows has issues unloading thumbnails, preventing you from deleting your files. To fix the problem, you just have to switch to Details view in File Explorer and you should be able to delete the file. To do that, follow these steps:

  1. Open File Explorer and locate the problematic file.
  2. Right-click the empty space and choose View > Details.
  3. Optional: You can do the same thing by navigating to the View tab and clicking on Details.

After switching to Details view, all thumbnails will be disabled and you should be able to delete the file. Users suggest moving the file to Desktop and closing the File Explorer window. By doing so, the preview pane won’t be available and you should be able to delete the problematic file with ease.

Solution 7 – Disable thumbnail generation

If you’re having problems with this error, you might be able to fix it by disabling thumbnail generation. You can do that by using the Group Policy Editor. This solution applies to network drives, but it might work for your local drive as well. To disable thumbnail generation, do the following:

  1. Press Windows Key + R and enter gpedit.msc. Click OK or press Enter.
  2. When the Group Policy Editor opens, navigate to User Configuration > Administrative Templates > Windows Components > File Explorer in the left pane. In the right pane double click on Turn off caching of thumbnails in hidden thumbs.db files.
  3. Select the Enabled option and clickApply and OK to save changes.

If you can’t access Group Policy Editor, you can disable thumbnail generation using Registry Editor. To do that, follow these steps:

  1. Press Windows Key + R and enter regedit. Press Enter or click OK.
  2. When the Registry Editor opens, navigate to HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows key in the left pane.
  3. Right-click the Windows key and choose New > Key. Enter Explorer as the name of the new key.
  4. Navigate to the Explorer key and right-click the empty space in the right pane. Choose New > DWORD (32-bit) Value. Enter DisableThumbsDBOnNetworkFolders as the name of the new DWORD.
  5. Double-click newly created DisableThumbsDBOnNetworkFolders DWORD to open its properties. Set Value data to 1 and click OK to save changes.
  6. After you’re done, close Registry Editor and check if the problem is resolved.

Solution 8 – Uninstall the problematic applications

Third-party applications can sometimes cause the File in use error to appear. Users reported that this problem occurred while working with ISO files. According to them, the cause of the problem was an application called Virtual Clone Drive. After removing the Virtual Clone Drive, the error was resolved completely.

Solution 9 – Use OpenFilesView tool

Another third-party application that can help you with this problem is OpenFilesView tools. The application is simple to use, and you can close the problematic applications by doing the following:

  1. Download OpenFilesView tool.
  2. Start the application. A list of active files will now appear.
  3. Locate the problematic file on the list, right-click it and choose Kill Processes of Selected Files. By doing so, you’ll terminate processes that are associated with that file.
  4. After doing that, try to delete the file again.

This is a simple application that allows you to close all processes related to a specific file. If the problematic file isn’t available on the list, you might have to try a different solution.

Solution 10 – Use Process Explorer

Several users reported that you might be able to fix the problem by using Process Explorer. To do that, follow these steps:

  1. Download Process Explorer.
  2. When the application opens, go to Find > Find Handle or DLL.
  3. In the Handle or DLL substring field, enter the name of the problematic file and click the Search button.
  4. A list of associated applications and DLLs should appear. Locate the application associated with the file, right-click it and choose the Close Handle option.

Keep in mind that you might have to repeat this process few times in order to close all related applications. We have to mention that Process Explorer is an advanced tool, so you might find it hard to use if you’re a novice user.

Solution 11 – Make sure that file isn’t blocked

Sometimes, the File in use error can appear if the file you’re trying to delete is blocked. Windows sometimes blocks downloaded files in order to protect you from malware. Although this feature can be useful, it can also prevent you from removing certain files. To fix this problem, you need to do the following:

  1. Right-click the problematic file and choose Properties from the menu.
  2. Go to the General tab and click the Unblock button in Security section. Click OK and Apply to save changes.

After unblocking the file, try to delete it again. If you can’t find the Unblock button in the Properties window, it means that the file is already unblocked, so you should try a different solution.

Solution 12 – Remove the virtual hard drive

A few users reported that the File in use error appears while trying to remove a virtual hard drive .vhdx file. To fix this problem, you need to remove virtual hard drive from your PC. To do that, follow these steps:

  1. Press Windows Key + X and choose Disk Management from the list.
  2. The Disk Management tool will now appear. Locate your virtual hard drive, right-click it and choose Detach VHD.
  3. A confirmation message will now appear. Click OK. After you detach the drive, it will disappear from Disk Management tool.
  4. After doing that, close Disk Management and try to delete the .vhdx file again.

Keep in mind that this solution only applies when deleting virtual hard drive files. If you have this problem with any other type of file, you should try a different solution.

Solution 13 – Use Resource Monitor

If you can’t delete a specific file, you might be able to solve the problem by using Resource Monitor, a Windows application that can give you a lot of information about open applications and files. To fix this problem using Resource Monitor, do the following:

  1. Press Windows Key + R and enter resmon. Press Enter or click OK.
  2. When Resource Monitor starts, go to the CPU tab. Now, expand the Associated Handles section and in the Search Handles field, enter the name of the problematic file. A list of associated applications will now appear.
  3. Right-click the associated application and choose End Process from the menu.

Keep in mind that sometimes you won’t be able to find the problematic file using Resource Monitor. If that happens, you might have to check each process one by one and check the list of all associated handles. If you manage to find the folder that has the problematic file, you’ll be able to determine which application is using it. Resource Monitor is an advanced tool, so it might take you a while to get used to it especially if you’re a first time user.

Fix – “File in use” error Excel

Solution 1 – Create a registry file and add it to your registry

According to users, you might be able to fix the File in use error while opening Excel files by creating a .reg file and adding it to your registry. To do that, follow these steps:

  1. Open Notepad.
  2. Paste the following text:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
    “ShowInfoTip”=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer]“PreviewPaneSizer”=hex:35,00,00,00,00,00,00,00,00,00,00,00,bd,02,00,00“ReadingPaneSizer”=hex:04,01,00,00,00,00,00,00,00,00,00,00,64,02,00,00

  3. Go to File and click Save as.
  4. Set Save as type to All Files. Enter fix.reg as the File name and click the Save button.
  5. Close Notepad and locate the fix.reg file. Double-click it and choose Yes when the warning message appears.

Keep in mind that this solution will modify your registry, therefore it’s advised to create a backup or System Restore point.

Solution 2 – Disable the preview pane

Users claim you can fix this problem simply by disabling the preview pane in File Explorer. We already explained how to do that in one of our previous solutions, so be sure to check it out.

Solution 3 – Check the file name

The File in use error can appear if the file name of your Excel document is too long. If the file name is too long, Excel can’t create the lock file. To fix the issue, you need to locate your Excel file and shorten its name. After renaming the file, you should be able to access it without issues.

Solution 4 – Delete the hidden lock file

Excel usually creates a temporary lock file alongside your Excel document. According to users, you simply have to locate and remove the lock file in order to fix this error. To do that, you need to follow these steps:

  1. Navigate to the folder where problematic Excel file is saved.
  2. Click View and check the Hidden items option.
  3. Locate the lock file. (It should have the same name as your Excel document.)
  4. Delete the lock file.

After removing the lock file, you should be able to access your Excel document without any issues.

Solution 5 – Check the personal.xlsb file

According to users, the File in use error in Excel appears after adding macros to the personal.xlsb file. To fix the problem, you need to find and delete that file. To do that, follow these steps:

  1. Navigate to C:\Users\your_username\AppData\Roaming\Microsoft\Excel\XLSTART\ folder. If this folder isn’t available navigate to C:\Users\your_username\AppData\Local\Microsoft\Excel\XLSTART\ folder instead. If you can’t find any of these folders, you’ll need to reveal hidden files. We already showed you how to do that in our previous solution, so be sure to check it out.
  2. Keep in mind that personal.xlsb is a hidden file, so you’ll need to reveal hidden files in order to see it.
  3. Once you locate personal.xlsb file, delete it if you don’t plan to use it.
  4. Optional: If you need the personal.xlsb file, right click it and choose Properties from the menu. Navigate to General tab and check the Read-only option. Click Apply and OK to save changes.

After doing that, you should be able to start Excel without any problems.

the File in use error is an annoying problem that will prevent you from accessing your files. If you have this error on your PC, be sure to try some of our solutions and let us know how it works out for you!

READ ALSO:

For various PC problems, we recommend to use this tool.

This tool will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Quickly fix PC issues and prevent others from happening with this software:

  1. Download this PC Repair Tool with Patended Technologies
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues (requires upgrade).