This Action Cannot Be Completed Because the File Is Open
“This action cannot be completed because the file is open” usually means Windows or an app still has the file—or its containing folder—in use, so it cannot be renamed, moved, deleted, or changed yet. Close the programs that may be using it, then try again; if you cannot identify the holder, use the troubleshooting steps below to release it safely.
Why Windows Shows This Message
Windows coordinates access to files so that programs can read or write them without conflicting changes. An application may keep a file handle open while you edit a document, play a video, preview an image, or save a download. Some applications also briefly hold files during background tasks such as indexing, syncing, or scanning.
The message does not always mean that a visible window has the file open. A background process may still be working, or File Explorer itself may be using the file to display a preview or thumbnail. The operation can also concern a folder that contains an open file, rather than the specific item you are trying to change.
For example, you might try to delete a folder containing a document that is open in an editor. Windows can refuse to delete the folder because the document inside remains in use. Similarly, a media player can keep a video open after its main window appears to have closed.
Try These Steps First
- Close the file in the app that opened it. Save any changes first, then close the document, image, video, or other item. Check other open windows and tabs; the file may be open in a second instance of an application.
- Close likely apps. Quit programs that could be using the file, including editors, media players, archive tools, and image viewers. Use the app’s normal exit command rather than merely hiding or minimizing its window.
- Close File Explorer previews. If the file is selected in a folder, turn off the Preview pane using File Explorer’s View options, then select a different item or close that Explorer window. A preview handler can sometimes keep a file busy.
- Wait briefly and retry. A save, copy, download, or sync operation may need a moment to finish. Check that the app is no longer displaying progress before trying the file operation again.
- Restart File Explorer or sign out. If no application appears to be using the item, restart Windows Explorer from Task Manager, or sign out and back in. Save work first; signing out closes your apps.
- Restart the computer if necessary. A restart clears many temporary file handles. Save open work before restarting, and try the operation again before reopening the app that may have been using the file.
Find the Program Holding the File
If closing obvious apps does not help, Windows includes tools that can show which process has a file open. The exact tool available depends on your Windows edition and configuration.
For a built-in option, open Computer Management, expand Shared Folders, and select Open Files. This view is most useful for files held through Windows file sharing; it may not identify every local application that has a file open. If you find the relevant entry, close the application or connection that owns it rather than forcing it closed without checking for unsaved work.
On some Windows editions, Resource Monitor can help investigate open handles. Open Task Manager, go to the Performance tab, and choose Open Resource Monitor if that option is available. In Resource Monitor, use the CPU tab’s associated handles search to look for the file name. Search results can be broad, so confirm the process and path before taking action.
Microsoft’s Process Explorer, a separate utility, can also search for handles by file name. It is a diagnostic tool, not a reason to terminate a process blindly. Closing a handle forcibly can make an application lose data or behave unpredictably. Prefer saving and closing the app normally; end a process only when you understand what it is and have accepted the risk of losing unsaved work.
When the File Is on a Network or Sync Folder
A file on a shared network location may be open on another computer or in another user’s session. Closing it in your own desktop will not release a handle held elsewhere. Ask the person using it to save and close it, or contact the administrator responsible for the shared folder. Administrators can review shared-file sessions, but disconnecting someone may interrupt their work.
Cloud-synced folders add another possible cause: a sync client may be processing a change. Let syncing finish, check the client’s status, and avoid editing the same file from multiple devices at once. If the file is stored on removable media, confirm the drive is connected and working before repeating the operation.
What Not to Do
- Do not delete the file through a different route just to bypass the message. Another tool may encounter the same lock, and forceful methods can cause lost work or filesystem problems.
- Do not end unfamiliar processes indiscriminately. A process name may belong to Windows or another important application. Identify it before closing anything.
- Do not remove a file that an application is actively saving. Wait for the save to finish and verify the result before moving or deleting it.
- Do not assume the file is damaged. This message usually concerns current access, not file corruption. If the error continues after a restart, investigate the specific app, shared location, permissions, or storage device.
If It Still Will Not Work
Check whether the issue affects one file or many. If only one file is affected, note its full location and extension, then consider which app opens that type. Try closing that app and its background windows. If many unrelated files are affected in the same folder, investigate whether a sync or sharing process is active, or whether the folder is on a network or removable drive.
Also distinguish an “open” message from a permissions problem. If the wording changes to say that access is denied or that you need permission, the issue may be your account’s access rights rather than an open handle. Do not change ownership or permissions indiscriminately, especially on system folders. For a work or school computer, ask the administrator if you lack access to a shared resource.
If restarting does not resolve the problem, record the exact message, the file path, what operation you were attempting, and whether the file is local, shared, or synced. That information helps an administrator or support person identify the responsible process without guesswork.
Frequently Asked Questions
How do I find out what program is using a file?
Close likely apps first. For shared files, check Computer Management’s Shared Folders > Open Files. Resource Monitor or Process Explorer can help identify local handles where available, but verify the process before acting.
Can I delete a file that Windows says is open?
Usually, close the application using it and try again. Avoid force-deleting it while a program may be saving changes; that can lose data or disrupt the application.
Why does the message appear when no program is open?
A background process, File Explorer preview, sync client, or another user’s network session may still hold the file. Restarting Explorer or the computer can clear a temporary local handle.
Will restarting my computer fix the error?
Often, because a restart closes applications and clears many temporary handles. Save your work first. It will not resolve a handle held by another computer on a shared drive.
Why can’t I delete a folder even though the folder is not open?
A file or subfolder inside it may be open. Close the app using that item, and check whether the folder is shared or being processed by a sync service.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.