Fix “File Is Open in Another Program” in Windows 11

Windows 11 may sometimes prevent you from deleting, moving, renaming, or modifying a file because it says the file is open in another program. The message can appear even when you cannot see any application using the file.

This usually happens because an application, Windows process, File Explorer, antivirus program, cloud-sync service, or another background process still has the file open. In some cases, simply closing the application or restarting Windows fixes the problem. If that does not work, you can identify and close the process that is using the file.

Here are several ways to fix the File Is Open in Another Program error in Windows 11.

Method 1: Close the Program Using the File

The easiest solution is to close the application that currently has the file open.

For example, if you are trying to delete a Word document, PDF, image, video, or text file, first close the program that opened it.

  1. Save your work.
  2. Close the application that may be using the file.
  3. Close any related windows.
  4. Open File Explorer again.
  5. Try to delete, move, or rename the file.

If you were editing the file in Microsoft Word, Excel, Photoshop, a media player, or another application, make sure the application is completely closed.

Sometimes a program remains running in the background even after its main window has disappeared.

Method 2: Close File Explorer Windows

File Explorer itself can sometimes keep a file or folder in use.

  1. Close all unnecessary File Explorer windows.
  2. Open Task Manager by pressing Ctrl + Shift + Esc.
  3. Find Windows Explorer.
  4. Right-click it.
  5. Select Restart.
  6. Open File Explorer again.
  7. Try the operation again.

Restarting Windows Explorer can release temporary file handles and refresh the folder.

This is particularly useful when you are trying to rename or move a folder that was recently opened in File Explorer.

Method 3: Restart Windows

A restart can release files that are being held by a background process.

  1. Save all your work.
  2. Close your applications.
  3. Select Start.
  4. Select Power.
  5. Select Restart.
  6. Wait for Windows to start.
  7. Open File Explorer.
  8. Try the operation again.

If the error disappears after restarting, a background process was probably holding the file.

If the problem keeps returning, use the methods below to identify the process responsible.

Method 4: Use Task Manager to Close the Related Application

A program may continue running in the background even after its window has been closed.

  1. Press Ctrl + Shift + Esc.
  2. Open Processes.
  3. Look for the application that may be using the file.
  4. Select it.
  5. Select End task.
  6. Return to File Explorer.
  7. Try deleting, moving, or renaming the file.

For example, if a video is open in a media player, close that media player from Task Manager if it does not shut down normally.

Be careful when ending tasks. Do not terminate unknown Windows system processes simply because they are running.

Method 5: Find the Process Using Resource Monitor

Windows Resource Monitor can help identify processes that have open file handles.

  1. Press Windows + R.
  2. Type:
resmon
  1. Press Enter.
  2. Open the CPU tab.
  3. Find the Associated Handles section.
  4. Use the search box to search for part of the file name.
  5. Review the process using the file.

Once you identify the program, close it normally if possible.

If necessary, you can use Task Manager to end the related application.

This method is useful when Windows only says that the file is open in another program without telling you which program is responsible.

Method 6: Stop Cloud Sync Temporarily

Cloud-storage applications can temporarily lock files while synchronizing them.

If the file is inside a folder synchronized by a cloud service, such as OneDrive or another synchronization application, wait for synchronization to finish.

You can also temporarily pause synchronization through the application’s controls.

Then try the operation again.

For example, a file that is currently uploading, downloading, or synchronizing may remain in use for a short period.

If the file is constantly locked by a synchronization application, check that application’s settings and make sure the file is not currently being edited or synchronized by another device.

Method 7: Temporarily Close Antivirus or Security Software

Security software can occasionally inspect files while they are being created, downloaded, modified, or moved.

If the file was recently downloaded or changed, an antivirus scan may temporarily keep it open.

First, wait a few moments and try again.

If the problem continues, check the security software’s status and scan activity.

Avoid disabling antivirus protection unless absolutely necessary. If you do temporarily disable a security feature for troubleshooting, restore it immediately afterward.

You should not permanently disable Windows Security simply to delete one file.

Method 8: Use Safe Mode

If a background application repeatedly locks the file during normal Windows operation, Safe Mode can help determine whether a third-party application is responsible.

Safe Mode starts Windows with a limited set of drivers and services.

To access Windows recovery options:

  1. Open Settings.
  2. Select System.
  3. Select Recovery.
  4. Find Advanced startup.
  5. Select Restart now.
  6. After Windows restarts, select the available recovery options.
  7. Choose Troubleshoot.
  8. Select Advanced options.
  9. Select Startup Settings.
  10. Restart the computer.
  11. Select the option to start Safe Mode.

Once Windows starts in Safe Mode, try the file operation.

If the file can be deleted, renamed, or moved in Safe Mode but not during normal startup, a third-party application or service may be responsible.

Check the File’s Location

The location of the file can provide clues about what is using it.

For example, files located inside:

  • Cloud-sync folders
  • Network folders
  • Application folders
  • Temporary directories
  • Media libraries

may be accessed by background programs.

If the file is inside a cloud-synchronized folder, allow synchronization to finish before modifying it.

If it is located on a network share, another computer or user may also have the file open.

If a Network File Is Open Elsewhere

If the file is stored on another computer or network storage device, another user may have it open.

In that situation, closing the application on your own computer may not release the lock.

Ask the other user to close the file and then try the operation again.

For shared folders managed by an administrator, the administrator may be able to identify which user or process currently has the file open.

Avoid Force-Deleting Important Files

If Windows says a file is being used by another program, do not immediately use aggressive deletion tools.

First determine what is using the file.

This is particularly important for system files, application files, databases, project files, and files stored in synchronized folders.

Deleting a file while an application is actively using it can cause data loss or application problems.

Conclusion

The File Is Open in Another Program message in Windows 11 usually means that another application or background process still has the file open. The simplest solutions are to close the application, restart File Explorer, or restart Windows.

If the message continues, Task Manager and Resource Monitor can help identify the process using the file. Cloud-sync software, antivirus programs, network locations, and background applications can also temporarily lock files.

If you cannot identify the process during normal Windows operation, Safe Mode can help determine whether a third-party application is responsible. Before forcefully deleting a locked file, make sure it is not an important system or application file and that you do not need the data.

FAQs

1. Why does Windows say a file is open when it is not?

A background application or Windows process may still have the file open. Cloud synchronization, antivirus scanning, File Explorer, and other programs can also temporarily lock files.

2. How do I find which program is using a file?

You can use Resource Monitor. Press Windows + R, enter resmon, open the CPU tab, and search for the file name under Associated Handles.

3. Will restarting Windows fix the problem?

Often, yes. Restarting Windows closes running applications and releases file handles that may have remained open.

4. Can I delete a file that is open in another program?

It is better to close the program using the file first. If the file is important, avoid force-deleting it until you know which process has it open.

Quick Summary

  • Close the application that may be using the file.
  • Restart Windows Explorer or restart the computer.
  • Use Resource Monitor to identify the process holding the file.
  • Check cloud-sync, antivirus, network, and background applications if the problem continues.

Related Articles

Popular Categories