Can't Move the Folder? Fix Windows File Access Errors
In this article
If you can't move a folder in Windows, it's usually because the folder is open in another program, a file inside it is locked, or your account lacks permission. This article explains the common causes and gives step-by-step fixes to get your folder moving again.
Why Windows Locks Folders
Windows prevents you from moving, renaming, or deleting a folder if any file inside it is in use. This is a safety feature to avoid corrupting data. The most common culprits are:
- An application has a file open (e.g., a Word document, a video being played, or a PDF in a viewer).
- A background process like antivirus scanning, cloud sync (OneDrive, Dropbox), or Windows Search is indexing the folder.
- Another user on the same computer has the folder open.
- File Explorer itself is showing the folder's contents in a window.
Check for Open Programs and Close Them
The first step is to close any program that might be using files in the folder. Look at the Taskbar and close obvious apps like Office, media players, or image viewers. Then, try moving the folder again. If it still fails, use Task Manager to close background processes:
- Press Ctrl + Shift + Esc to open Task Manager.
- Under Processes, look for apps that might access the folder (e.g., Word, Excel, Photoshop, or a video player).
- Right-click the process and select End Task.
- Try moving the folder again.
Use File Explorer to Find Locking Handles
If closing obvious programs doesn't work, you need to find exactly which process has a handle on the folder. Windows doesn't have a built-in tool for this, but you can use the free Microsoft tool Process Explorer (from Sysinternals). Here's how:
- Download and run Process Explorer (no installation needed).
- Press Ctrl + F to open the search box.
- Type the name of the folder (or a file inside it) and click Search.
- In the results, you'll see the process that has the folder open. Right-click it and select Close Handle or Kill Process.
- Try moving the folder again.
Restart Windows Explorer
Sometimes File Explorer itself holds a lock, especially if you've previewed files or have the folder in a tab. Restarting Explorer is safe and quick:
- Press Ctrl + Shift + Esc to open Task Manager.
- Under Processes, find Windows Explorer.
- Right-click it and choose Restart.
- Your taskbar will disappear and reappear. Try moving the folder now.
Check Folder Permissions
If the folder is not locked but you still get an error like "You need permission to perform this action," your account may not have full control. To fix this:
- Right-click the folder and select Properties.
- Go to the Security tab and click Advanced.
- Next to Owner, click Change, type your username, and click Check Names, then OK.
- Check the box Replace owner on subcontainers and objects and click OK.
- Back in the Security tab, select your user and ensure Full control is checked. If not, click Edit and grant it.
Use Command Prompt to Force Move
If all else fails, you can try moving the folder using the command line, which sometimes bypasses Explorer's quirks. Open Command Prompt as administrator (type "cmd" in Start, right-click, and choose "Run as administrator"). Then use the move command:
move "C:\Source\Folder" "D:\Destination\Folder"
If you get an "Access is denied" error, the folder is still locked. You can also try robocopy to copy the folder and then delete the original:
robocopy "C:\Source\Folder" "D:\Destination\Folder" /E /MOVE
This copies all files and then deletes the source folder. If a file is locked, robocopy will skip it and report it.
What If the Folder Is on a Network Drive?
If the folder is on a network share, the lock might be on the server side. Check if another user has the file open, or ask the administrator to close the session. You can also try copying the folder to your local drive first, then moving it to the final destination.
Frequently Asked Questions
Why does it say "The action can't be completed because the folder is open in another program"?
This means a program on your computer has a file inside that folder open. Close all applications, or use Process Explorer to find and close the specific process.
Can I move a folder that is being synced by OneDrive or Dropbox?
Yes, but you should pause syncing first. Right-click the cloud icon in the system tray and choose "Pause syncing." Then move the folder and resume syncing. If you move it outside the sync folder, the cloud service may treat it as a deletion.
What does "You need administrator permission" mean?
It means your user account doesn't have the right to modify that folder. You need to take ownership (as shown above) or run the move command as an administrator.
Is it safe to force-delete a locked folder?
No. Forcing deletion can corrupt files or the file system. Always try to unlock the folder properly first. If you must, use a tool like Unlocker, but only after backing up important data.
Why can't I move a folder to a different drive?
Moving to a different drive is actually a copy-and-delete operation. If the folder is large, it can take time. Also, if any file is locked, the operation will fail. Try copying the folder first, then delete the original.