Permission & Access Issues

How to Fix Cannot Rename Files After Closing Applications in Windows

Muhammad TalhaMuhammad Talha Nov 2, 2026 870 views

Question details

The user is unable to rename files or folders after closing the applications that were using them, due to a persistent 'file in use' error.

How to Fix Cannot Rename Files After Closing Applications in Windows
Product
Windows OS
Device & OS
Windows
Scenario
Attempting to rename files or folders immediately after working on them and closing the associated applications.
Observed behavior
Windows incorrectly reports that the file or folder is still in use and prevents renaming. The issue is only temporarily resolved by restarting the laptop.
Before you start

Before diving into advanced troubleshooting, ensure that you have completely closed the application and wait a few seconds to allow Windows to release the background file handle.

Solution 1Recommended

Restart Windows Explorer via Task Manager

Restarting the Windows Explorer process quickly refreshes the system and often releases locked file handles without needing a full system reboot.

Windows Explorer is responsible for managing the desktop and file management interfaces. Sometimes, it fails to register that an application has closed, keeping the file locked. Restarting this process is the quickest way to force the system to release the file.

1
Open Task Manager

Right-click on the Windows Start button or taskbar and select 'Task Manager', or press Ctrl + Shift + Esc on your keyboard.

2
Locate Windows Explorer

If Task Manager opens in a simplified view, click 'More details' at the bottom. Scroll down through the 'Processes' tab until you find 'Windows Explorer'.

3
Restart the Process

Right-click on 'Windows Explorer' and select 'Restart'. Your screen and taskbar will briefly flash and reload. Once reloaded, try renaming your file again.

Restart Windows Explorer via Task Manager
Quick Fix: This method usually resolves over 80% of temporary file lock issues without interrupting your other open work.
Free Microsoft Office alternative

Avoid File Lock Issues with Lightweight WPS Office

If heavy office applications frequently leave background processes that lock your documents and prevent renaming, consider switching to WPS Office. As a free, lightweight, and efficient suite, it manages system resources flawlessly to ensure your files are promptly released when closed.

Optimized resource management prevents lingering background processes and file lock errorsFully compatible with Microsoft Office formats including .docx, .xlsx, and .pptxLightweight installation ensures incredibly fast startup times and low memory usageFamiliar user interface allows for a seamless transition without any learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why does Windows say a file is open when it's completely closed?

This happens when a background process fails to release the file handle after the application's main window is closed. It can also be caused by the File Explorer Preview Pane generating thumbnails, or your antivirus software running a background scan on the file.

How can I force rename a file in Windows 10 or 11?

If normal methods fail, you can force rename a file by booting your computer into Safe Mode, using the Command Prompt to rename it, or using a third-party utility like Microsoft PowerToys (which includes a 'File Locksmith' feature to easily identify and terminate locking processes).

Does having the Preview Pane enabled cause file locking issues?

Yes. When the Preview Pane is enabled in File Explorer, Windows reads the file to display its contents on the right side of the screen. While it is generating this preview, the file is temporarily locked, which will prevent you from renaming or moving it.