> ## Content Index
> Fetch the complete content index at: https://techbytefix.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Fix “File Is Open in Another Program” Error on Windows
- URL: https://techbytefix.com/file-open-another-program-error-windows/
- Published: 2026-10-25T00:33:13.000Z
- Updated: 2026-10-25T00:33:13.000Z
- Author: Jake Whitman
- Tags: Windows, Troubleshooting

Windows shows “File Is Open in Another Program” when an application or background process still has the file open. Save and close the likely app, turn off File Explorer’s Preview pane, restart Windows Explorer, and reboot before using advanced tools; these steps usually release the lock safely. Do not delete the file or force-end an unfamiliar system process until you know its latest changes are saved.

## First, close the program that is probably holding the file

Start with the application most likely to have opened the file. A Word document may still be open in Word, a workbook in Excel, and a photo or video may remain open in an editor or media player even if its window is minimized. Archive utilities can also keep a file open while they display or extract it.

Save your work, close the document, and exit the application instead of closing only the file tab. If you are trying to delete or move a file from a folder, close every program that might be displaying it. Check Office apps, image and video viewers, PDF readers, archive tools, command windows, and editors.

```text
The action can't be completed because the file is open in another program.
```

Error

The message commonly appears when you try to rename, move, delete, overwrite, or edit a file that another process has opened. After closing the suspected app, wait briefly and retry the original action. If it succeeds, that app held the lock. If the message remains, continue with the File Explorer checks below instead of repeatedly clicking the same command.

## Before you start

These steps apply to supported desktop versions of Windows 10 and Windows 11\. They cover files held by desktop apps, File Explorer, cloud-sync tools, antivirus scans, services, other Windows users, and network storage.

The initial checks normally require no Administrator permission and do not alter the file. Task Manager, Resource Monitor, and PowerToys File Locksmith can require an Administrator prompt when the process belongs to another account or is a protected service. A restart is not required at the beginning, but rebooting Windows is the safest escalation after the visible app and Explorer checks fail.

Before ending any process, save your work and confirm that the file’s latest changes have finished saving. Do not delete, move, or overwrite an editable file while an application may still be writing to it.

## When Windows says it is open but you cannot see the app

File Explorer itself is a frequent source of this error. Its Preview pane or Details pane can open a file in the background while you browse the folder. Extra Explorer windows can also keep a file handle open. Work through these steps in order:

1. Open the folder containing the file in File Explorer.
2. Select `View` \> `Show` and turn off `Preview pane` and `Details pane` if either is enabled.
3. Close every File Explorer window, including windows showing the file’s folder, a search result, or a preview.
4. Pause OneDrive or Dropbox syncing from its notification-area icon if the file is inside a synchronized folder. Allow an upload or download already in progress to finish when possible.
5. Restart Windows Explorer from Task Manager.

To restart Explorer, press `Ctrl`+`Shift`+`Esc`, select `Windows Explorer` under Processes, and choose `Restart`. Your desktop and taskbar may disappear briefly and then return.

```text
File Explorer > View > Show > Preview pane
File Explorer > View > Show > Details pane
```

Settings path

Retry the action after Explorer returns. If it succeeds, Explorer or its preview-related activity held the lock. If it does not, another application or service probably owns the handle. Thumbnail generation, indexing, antivirus scanning, and synchronization can all run in the background without a visible window.

## Find and close the process that has the file locked

Use Task Manager first when you can identify a likely application. Press `Ctrl`+`Shift`+`Esc`, select the suspected app under Processes, and choose `End task` only after saving any work. Close ordinary applications such as an image viewer, media player, Office app, archive utility, or sync client. Do not end a process simply because its name is unfamiliar, and do not force-close an app that may contain unsaved changes.

If Task Manager does not reveal the owner, use Resource Monitor to search open file handles:

1. Press `Win`+`R`, enter `resmon`, and press Enter.
2. Open the `CPU` tab and expand `Associated Handles`.
3. Enter part of the file name in the search field.
4. Use the matching process name and process ID to identify the application.
5. Close that application normally, then retry the original action.

Resource Monitor does not always show every type of lock, so an empty result is not proof that no lock exists. If the process is recognized but will not close normally, save your work and use its own interface to stop or pause it when possible.

Microsoft PowerToys File Locksmith is another practical option. Install PowerToys from Microsoft’s official distribution source, then right-click the file or its containing folder and choose `Show more options` \> `Unlock with File Locksmith` when that command is available. File Locksmith lists the processes using the item and can restart with elevated permission if required. Close the identified application normally whenever possible; use its process-ending option only for a recognized, disposable process with no unsaved work.

If the owner is a Windows service, antivirus component, or sync process, stop or pause that product through its own interface instead of killing a random system process. An Administrator prompt may be needed to inspect or act on a process owned by another account or a protected service. If the owner is still unclear, save your work and restart Windows before using more forceful methods.

![A Windows computer screen shows Task Manager beside a locked file in File Explorer.](https://tse1.mm.bing.net/th?q=locked%20Windows%20file%20Task%20Manager%20screen&w=624&h=352&c=7)

## Try the action again and confirm the lock is gone

Retry the exact operation that failed: rename, move, delete, or edit the file. The expected result is that Windows completes the operation without displaying the lock message. For an edit, open the file again, make a small intentional change, save it, close the application, and retry the original operation if appropriate.

If the operation succeeds, the process you closed or paused held the lock. If the error returns immediately, check the file’s location and ownership:

- A OneDrive or Dropbox folder may still be uploading, downloading, or resolving a sync conflict. Pause syncing, wait for the client to finish, or use its conflict-resolution prompt before changing the file.
- A file on a network share or network-attached storage may be open on another computer. Ask the other user to close it, or have the storage administrator close the remote session. Your local Task Manager may not show that remote owner.
- Another Windows user may have the file open through a shared folder. Do not disconnect or sign out that user without confirming that their work is saved.
- Antivirus or endpoint-security software may be scanning a newly downloaded, copied, or modified file. Wait for the scan to finish; do not disable protection merely to remove a lock.
- A service or scheduled task may reopen the file as soon as you close it. The process name from Resource Monitor or File Locksmith can point to the responsible software.

If the file is not being used by another person and the owning app has closed, restart Windows. A restart closes ordinary processes and clears many stale handles. After signing back in, try the operation before reopening the suspected app or sync client. If it still fails after the restart, the file may remain under the control of a remote user, service, security product, or synchronization client.

## Prevent the error from coming back

Close the application that opened a file before moving or deleting it, and save changes before ending a session. For Office documents and other editable files, wait for the save indicator to finish; never remove a file while an application may still be writing its latest changes.

Let OneDrive or Dropbox finish synchronization before renaming a file or moving it between synchronized folders. If a conflict appears, resolve it in the sync client rather than creating several copies with similar names. When you need to work on a large file, copy it to a local folder first if the network share is slow or unreliable, then copy the completed version back after closing the application.

Avoid repeatedly force-ending processes, especially services with names such as `svchost.exe`, security software, storage drivers, and other Windows components. Ending the wrong process can cause data loss or make Windows unstable. If a stale lock remains after the owning app is closed, restart Windows; that is safer than guessing which protected process to terminate.

After a successful fix, open the file once, close it cleanly, and retry the same operation. If the problem returns only in one folder, the cause is likely that folder’s sync, network, indexing, or security software rather than the file itself.

## Conclusion

Close the likely app, disable Explorer previews, restart Windows Explorer, and reboot before investigating individual processes. If the lock persists, use Resource Monitor or PowerToys File Locksmith to identify a recognized owner, then handle cloud-sync, network, antivirus, or service-related locks through the responsible product. Retry the original operation only after confirming that the file’s latest changes are saved.

## Frequently Asked Questions

### Why does File Explorer lock a file I am not opening?

The Preview pane, Details pane, thumbnails, search, or another Explorer window may have opened the file or requested information from it. Turn off the Preview and Details panes, close extra Explorer windows, restart Windows Explorer, and retry the operation.

### Can I delete a file that Windows says is open?

Do not force deletion until you know the file is no longer being edited or synchronized. Close the owning app, stop or pause the responsible sync process, and retry. If another user or computer has it open, have that user close it first.

### What if the file is on OneDrive, Dropbox, or a network drive?

For OneDrive or Dropbox, wait for synchronization to finish or pause the sync client, then retry. For a network drive, another computer or user may own the lock; close the remote file or ask the storage administrator to release the session. Your local Task Manager may not identify that remote owner.