How to Delete or Rename File in Use by Another Program



RECOMMENDED: Click here to fix Windows errors and optimize system performance

Windows File Explorer claims that the file you are trying to delete is open in another program or system? If you cannot open, edit or delete a file, it is because it is still running in the background or has not been closed correctly.

Fortunately, you can force a file that you use to close, rename, move or delete.

To delete or rename a used file: Close Windows Explorer

If you have closed all your applications and still cannot delete a file, it is probably because Windows Explorer is accessing the file, perhaps to display a thumbnail.

You can move all the other files in the folder to a temporary folder, then delete the folder that contains the real estate file, but if this still doesn’t work, try closing Windows Explorer. To do this, launch the Task Manager (right-click on the task bar and choose Task Manager).

End the Application via the Task Manager

The reason for the restart is that the system restarts from scratch and – among other things – all processes currently running in the Task Manager are closed. Instead of restarting, you can also try to manually terminate the process or application that holds your file hostage. This is the most effective method to correct the error “The file is opened in another program”.

Click Ctrl + Shift + ESC to open the Task Manager. You can also right-click on the task bar or Ctrl + Alt + Del anywhere in Windows and select Task Manager. If you see the compact version of Windows 1o, click on More details and make sure you are in the Process tab. Now look for the application that opened the “used file”. For example, if you have seen a document, search for Word.

Using the Command Prompt

This method requires that you open the command prompt on your Windows PC. For files used by some local processes (processes that can be started and closed by a standard non-admin user account), simply open the command prompt for a standard user account. However, if the file is used by a system process, the high prompt must be initialized. A high prompt is the command window, which has all administrative rights and all administrative tasks can be performed using commands in the user interface.



May 2019 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

download



That’s what you have to do:

Note: This example uses a Windows 7 PC.

On your Windows PC, locate the folder that contains the file you want to delete. (Do not type in the folder.)

Shift + right click on the folder.

In the extended context menu that appears, click Open Command Window or press the W key on the keyboard.

Restart your computer

In general, a file is not locked after the computer restarts, unless the program that locked it is a startup program that locks the file when you connect. If you have a persistent file or folder and don’t want to use the tips here, you can try restarting your computer. You should be able to delete, move or rename the file when Windows reappears.

If the file is locked by a startup program, you can start in safe mode to delete it. If you are using Windows 7, press F8 at startup and select Safe Mode to start in Safe Mode. If you are using Windows 8 or 10, you must access the safe mode from the boot options menu. Delete (or move) the file in safe mode and restart your computer.

Using the Windows Resource Monitor

  1. Press the Windows key on your keyboard, type resmon.exe and press Enter.
  2. In the window that appears, click on the CPU tab.
  3. In the third bar at the top, you will see Associated Handles.
  4. Type the name of the file you are trying to close in the search handle bar, then click on the magnifying glass icon.
  5. Find the program that uses your file.
  6. Right-click on the program that contains the file, then select Finish the process.

If you can’t find the file with the steps above, try the delete option in the next section.

https://www.quora.com/How-do-I-delete-a-file-on-computer-that-is-in-use-by-an-unknown-program-in-Windows-8



RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance