


How to fix 'The action can't be completed because the folder or a file in it is open in another program' error?
Jul 11, 2025 am 01:10 AMOpen Resource Monitor; 2. Look for relevant processes in the "CPU" or "Memory" tab; 3. End the program process that occupies files or folders. When deleting or renaming a folder prompts to be occupied by other programs, you can locate the specific process through the resource monitor and end it, thus solving the problem.
You are about to delete or rename a folder, and the prompt pops up: "The action can't be completed because the folder or a file in it is open in another program". This is common, but it does cause a headache. The solution is actually not complicated. The key is to find which program occupies this file or folder.

1. Close the relevant program (the most common solution)
Many times, the system has clearly told you that "there is a file occupied by another program", and the first step is to manually close these programs .
- Check if there are any software that is opened, such as Word, Excel, picture viewer, video player, etc., especially programs that you have recently operated the contents of the folder.
- If you preview certain files (such as PDFs) in your browser, it may also be that the browser locks it in the background.
- Right-click on the taskbar → "Task Manager" → Check for suspicious processes and right-click to end them.
Tips: If you are not sure which program is being used, you can try restarting the computer and then performing it. Most temporary locking issues will disappear after restarting.
![]()
2. Use Resource Monitor to find occupant processes
If the above method doesn't work, you need to have a deeper investigation - Windows comes with a very useful tool called Resource Monitor .
The steps are as follows:

- Press
Ctrl Shift Esc
to open Task Manager - Switch to the Performance tab → Click "Open Resource Monitor" at the bottom
- Find "Associated Handles" next to the "CPU" tab
- Enter the folder name or file name you are having in the search box
- It lists all processes that are accessing the file/folder
- Right-click the corresponding process → end the task
Note: It is recommended to back up important data before operation to avoid instability caused by manslaughtering critical processes of the system.
3. Check whether it is occupied by system services or indexing functions
Sometimes it is not caused by the program you open on your own initiative, but the system itself is processing these files.
- Windows Search Index Service : Sometimes it scans folder content in the background, causing a brief lock.
- Antivirus software or synchronization tools (such as OneDrive, Dropbox): These tools usually run in the background and may scan or cache files.
You can try:
- Temporarily turn off antivirus software or synchronization tool (remember to restart it afterwards)
- Or exclude folders from the index:
- Right-click the folder → Properties → Advanced → Check "In addition to file properties, it is also allowed to index the contents of files on this drive."
- Uncheck → Apply
4. Force unlock using third-party tools
If you don't want to mess around with the command line or resource monitor, you can also use some small third-party tools to quickly solve the problem:
- Unlocker : The interface is friendly, you can see which process is occupying and select Release by clicking.
- LockHunter : powerful, capable of forcibly unlocking most locks
- Process Explorer (Microsoft official tool): Recommended by advanced users, similar to task manager but more detailed
Tip: Pay attention to the source when downloading these tools and avoid downloading versions with bundled software.
Basically these are the methods. In most cases, closing the program or restarting the computer can do it; if it doesn't work, then check the process and services step by step. Although this problem is annoying, it can generally be solved as long as the thinking is clear.
The above is the detailed content of How to fix 'The action can't be completed because the folder or a file in it is open in another program' error?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Stellar Blade save file location on Windows PC: where to find it, how to back up your game data, and what to do if the save files are missing or the game is not saving. This MiniTool guide provides detailed instructions and solutions.Quick Navigation

Many users encountered installation issues and some unexpected problems after applying the Windows 11 update KB5060829. If you're facing similar difficulties, don't panic. This MiniTool guide presents the most effective fixes to resolve KB5060829 not

Are you urgently looking for effective solutions to fix the Dune: Awakening black screen issue on Windows? You’ve come to the right place. This detailed guide from MiniTool presents several practical and reliable methods to address this frustrating p

KB5060999 What are the update contents of Windows 11 23H2? How to download? What to do if the update fails? This article will be described in detail and provides a solution to the failure of KB5060999 installation. Quick Navigation :- Windows 11 23H2 KB5060999 Updated Content - KB5060999 Reason for installation failure - Solve the problem that KB506099 cannot be installed - Summary of Windows 11 23H2 KB5060999 Update KB5060999 is a cumulative security update for Windows 11 released by Microsoft on June 10, 2025

Microsoft has released Windows 10 KB5061087 for 22H2 to fix some issues. From this post on MiniTool, learn how to install this preview optional update on your PC. Also, you can know what to do if KB5061087 fails to install via Windows Update.Quick Na

Is Stellar Blade crashing or failing to launch on your PC? Do not worry. This guide from MiniTool Software provides you with a couple of effective solutions to help you fix the issue and get the game running smoothly.Quick Navigation :- Stellar Blade

When the Windows Security Center is blank or the function is missing, you can follow the following steps to check: 1. Confirm whether the system version supports full functions, some functions of the Home Edition are limited, and the Professional Edition and above are more complete; 2. Restart the SecurityHealthService service to ensure that its startup type is set to automatic; 3. Check and uninstall third-party security software that may conflict; 4. Run the sfc/scannow and DISM commands to repair system files; 5. Try to reset or reinstall the Windows Security Center application, and contact Microsoft support if necessary.

What should you do if the Dune Awakening Controller fails to function? What causes this issue? This MiniTool article provides a comprehensive explanation and guides you through resolving this frustrating problem.Quick Navigation :- Dune Awakening Con
