Table of Contents
1. Close the relevant program or restart the Explorer
2. Use Resource Monitor to view file occupancy
3. Automatically unlock files using third-party tools
4. Tips to avoid file occupation
Home Computer Tutorials Troubleshooting How to fix 'The file is open in another program' error in Windows?

How to fix 'The file is open in another program' error in Windows?

Jul 22, 2025 am 12:24 AM

When you encounter a file prompt that it is occupied, you must first confirm whether the program is not closed correctly or the resource manager is stuck. Then you can follow the following steps: 1. Manually check and close the relevant programs, or end the suspected process through the task manager, and restart the resource manager if necessary; 2. Use the resource monitor to accurately find the process that occupies the file, and then end the corresponding process in the task manager after positioning; 3. Automatically unlock the file with the help of Unlocker, LockHunter and other tools; 4. Develop good operating habits, such as normal exiting the program, safely removing the device, and optimizing cloud synchronization settings to reduce the occurrence of such problems. Mastering these methods can effectively deal with the situation of file occupation.

How to fix \

You are about to open a file, but the system prompts pop up: "The file is open in another program", but you are obviously not using it. This situation is actually quite common, especially in Windows systems. The reason for this error may be that the program is not closed correctly, or the Explorer is stuck in the occupation of a file. Here are some practical methods to help you quickly solve this problem.

How to fix

1. Close the relevant program or restart the Explorer

Many times, files are occupied by other programs, but you may not notice which one is. For example, when you are editing a document in Word, you still prompt "the file is occupied" after closing it, which may be that the background process is still running.

You can try:

How to fix
  • Manually check whether there are relevant program windows in the taskbar
  • Press Ctrl Shift Esc to open the task manager, find the program that is suspected to occupy the file, right-click and select "End Task"
  • If you are not sure which program it is, you can try restarting Explorer:
    • Find Windows Explorer in the Processes tab of Task Manager
    • Right-click and select "Restart"

Doing so will usually free up some temporarily locked files.


2. Use Resource Monitor to view file occupancy

If you don't want to blindly close programs one by one, you can use the tools that come with Windows to accurately locate who is "secretly" using that file.

How to fix

The operation steps are as follows:

  1. Press Win R to open the run window, enter resmon and press Enter
  2. Switch to the "CPU" tab (don't be surprised, the resource monitor entry is here)
  3. Scroll to the bottom and click "Associated Handle"
  4. Enter the file name you want to open in the search box (such as example.docx )
  5. After waiting for the search to complete, you will see which processes are accessing this file

After finding it, just end the corresponding process in the task manager. However, it should be noted that some system processes cannot be closed at will. It is recommended to confirm whether the process name is safe first.


3. Automatically unlock files using third-party tools

If you are not familiar with the system process and do not want to manually check it, you can directly use some gadgets to do it. Common tools are:

  • Unlocker : The interface is friendly, right-click the file to see who is taking it, and provides one-click unlocking
  • LockHunter : More powerful, capable of forcibly unlocking almost all types of locks
  • Process Explorer (Microsoft official tool): Suitable for advanced users, features similar to resource monitors but more flexible

These tools are very simple to use, just follow the prompts after downloading and installing. However, be careful to download from the official website to avoid bundling software.


4. Tips to avoid file occupation

Sometimes the problem is not one-time. If you often encounter this kind of prompt, you can pay attention to the following points:

  • Do not close the program directly after editing the file, try to exit normally
  • Do not forcefully remove the USB drive or external devices, remember to "safely remove hardware" first
  • When using cloud synchronization tools, files can sometimes be occupied. You can adjust the synchronization policy in settings
  • Regularly clean up background processes, especially those long-term office software

Basically these are the methods. Although it is quite annoying to encounter this problem every time, as long as you master one or two methods, you can basically solve it quickly. The key is to figure out who is occupying the file and then process it in a targeted manner.

The above is the detailed content of How to fix 'The file is open in another program' error in Windows?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to fix the black screen issue in Google Chrome? How to fix the black screen issue in Google Chrome? Aug 06, 2025 pm 12:22 PM

DisablehardwareaccelerationbygoingtoChromeSettings→Systemandtogglingoff"Usehardwareaccelerationwhenavailable",thenrelaunchChrome.2.UpdategraphicsdriversviaDeviceManageronWindowsorSystemSettingsonmacOS,ordownloadthelatestversionfromthemanufa

edge pdf viewer not working edge pdf viewer not working Aug 07, 2025 pm 04:36 PM

TestthePDFinanotherapptodetermineiftheissueiswiththefileorEdge.2.Enablethebuilt-inPDFviewerbyturningoff"AlwaysopenPDFfilesexternally"and"DownloadPDFfiles"inEdgesettings.3.Clearbrowsingdataincludingcookiesandcachedfilestoresolveren

how to fix win 10 blue screen 'irql_gt_zero_at_system_service' how to fix win 10 blue screen 'irql_gt_zero_at_system_service' Aug 13, 2025 pm 05:03 PM

First update or rollback the driver, 1. Enter safe mode; 2. Update or roll back the graphics card, storage and other drivers; 3. Run Windows memory diagnostic tools to detect RAM; 4. Use sfc/scannow and DISM to repair system files; 5. Uninstall recent software or system updates; 6. Run chkdsk to check disk errors; 7. Use BlueScreenView to analyze dump file and locate faulty drivers; 8. Finally, you can try to reset Windows retained files, and the problem can usually be solved.

Volume keys on keyboard not working Volume keys on keyboard not working Aug 05, 2025 pm 01:54 PM

First,checkiftheFnkeysettingisinterferingbytryingboththevolumekeyaloneandFn volumekey,thentoggleFnLockwithFn Escifavailable.2.EnterBIOS/UEFIduringbootandenablefunctionkeysordisableHotkeyModetoensurevolumekeysarerecognized.3.Updateorreinstallaudiodriv

How to solve touchpad not working issues on Windows? How to solve touchpad not working issues on Windows? Aug 05, 2025 am 09:21 AM

Checkifthetouchpadisdisabledbyusingthefunctionkey(Fn F6/F9/F12),adedicatedtogglebutton,orensuringit’sturnedoninSettings>Devices>Touchpad,andunplugexternalmice.2.UpdateorreinstallthetouchpaddriverviaDeviceManagerbyselectingUpdatedriverorUninstal

How to solve the problem of 404 online How to solve the problem of 404 online Aug 12, 2025 pm 09:21 PM

How to solve the Internet 404 error: Check whether the URL is correct. Refresh the page. Clear browser cache: Chrome: three dots in the upper right corner > More tools > Clear browsing data > Check "Cached pictures and files" > Clear data Firefox: Three horizontal lines in the upper right corner > Options > Privacy and Security > Clear history > Check "Cache" > Confirm Safari: dish

Why can't you access the Internet when connecting to a wireless network? Check these 4 common reasons Why can't you access the Internet when connecting to a wireless network? Check these 4 common reasons Aug 12, 2025 pm 08:57 PM

Wireless network displays that it is connected but cannot access the Internet is a problem that many people often encounter when using electronic devices. Although the Wi-Fi signal is full, but the web page cannot be opened or video cannot be viewed. What is the problem? Don't worry, Driver will organize a complete set of troubleshooting and solutions for you today to help you quickly restore network connections. Let's learn about it together~1. A router or router that has abnormally running for a long time may have a performance degradation due to heat, cache accumulation or system failure; if Lightmaster loses communication with the operator's server, even if the device shows that it is connected to Wi-Fi, it will not be able to access the Internet. 1. Restart the network device: Unplug the router and the optical cat, wait for about 30 seconds before powering on and starting again, so that the device can re-establish the connection. 2. Check the settings

What should I do if the application cannot start normally (0xc0000906)? See the solution here What should I do if the application cannot start normally (0xc0000906)? See the solution here Aug 13, 2025 pm 06:42 PM

When opening the software or game, a prompt suddenly appears that "the application cannot start normally (0xc0000906)" appears, and many users will be confused and don't know where to start. In fact, most of these errors are caused by corruption of system files or missing runtime libraries. Don't rush to reinstall the system. This article provides you with several simple and effective solutions to help you quickly restore the program to run. 1. What is the error of 0xc0000906? Error code 0xc0000906 is a common startup exception in Windows systems, which usually means that the program cannot load the necessary system components or running environment when running. This problem often occurs when running large software or games. The main reasons may include: the necessary runtime library is not installed or damaged. The software installation package is endless

See all articles