The action can’t be completed because the folder or a file in it is open in another program


UPDATE: Sometimes all you need to do is right click the OneDrive icon in the taskbar and disable it for a little while to transfer or delete files. Set the time desired and you can always re-enable it when the operations are complete. There are still times when explorer is the culprit.

The action can't be completed because the folder or a file in it is open in another program

I was trying to tidy up my folders in OneDrive locally and what a headache that turned out to be. There were some articles that, although they didn’t have a solution, they pointed me in the right direction but, until I figured out a workaround I kept getting, “The action can’t be completed because the folder or a file in it is open in another program, Close the folder or file and try again.” Sheesh!

I did figure out a way to move the folders and files but the solution to do so isn’t for beginners. However, if your at your wits end you might try this. It was the only one that worked for me. I’ll try to make this as simple to follow as I can. Follow the process and make sure to kill the correct explorer.exe or it won’t work. No guarantees either!

Run Explorer.exe

First, run explorer from the taskbar, start menu, or the search dialog in the taskbar. Type explorer.exe into the search as pictured.

Run explorer. Exe from the search dialog if not running already.

Go To View / Options

Click on the upper tab titled “View”, and select “Options” on the right side.

Click the view tab, open options at the right.

Launch Folder Windows in a Separate Process

Click on the view tab again and scroll to the middle, put a check in the box next to “Launch Folder Windows in Separate Process”, and click “OK”.

Launch folder windows in separate process

Run Task Manager

Run the task manager the same way we ran explorer.exe, from the search dialog in the taskbar. In the lower left-hand corner of the task manager, click on “More details”.

Run the task manager from search.
Click on more details at bottom left.

Kill “Windows Explorer” Under Windows Processes

Now for the dirty work. There will be two instances of “Windows Explorer” visible in the task manager now, if you have the same exact reason for the error that I did. One at the top under “Apps”, and one at the bottom under “Windows Processes”. Make sure you’ve selected the correct one which is the one at the bottom of the list, in the “Windows Processes” section. When you’ve highlighted it by clicking on it, press the delete key once and it will stop the process. The taskbar at the bottom of the screen will disappear. The Windows Explorer instance at the top should still be running.

DON’T CLOSE THE TASK MANAGER!

Be sure to leave the task manager running because we’ll use it later to relaunch the explorer.exe executable for running the Windows shell.

Not this instance of windows explorer
This instance of windows explorer
Kill this one instance under “Windows Processes” at the bottom.
One windows explorer still open
The remaining Windows Explorer is at the top in the Apps section.

Move Your Data

Now you can return to the Windows Explorer that is still open and move your folders or files. Hopefully it let you. Now to restore your settings.

Uncheck, Launch Folder Windows in a Separate Process

In the same Windows Explorer, click on the “View” tab, “Options” at the right, and remove the checkmark from “Launch Folder Windows in a Separate Process”. Click “OK”.

Uncheck launch folder windows in a separate process

Restart the Windows Shell

Now go back to the task manager and from the menu at the top left, select “File” and “Run new task”. Type “explorer.exe” into the run line and press enter or click “OK”.

Restart explorer. Exe
Run explorer. Exe

That should restart the shell and the taskbar at the bottom should now be visible.

Rebooting is easier, but if something keeps locking the file, then this is the solution.

You’re done, hope it worked for you too.

(Visited 9,353 times, 1 visits today)

1 thought on “The action can’t be completed because the folder or a file in it is open in another program”

Disclaimer

Technoogies.com has made every effort to ensure that the information provided is correct but is not advice. Technoogies will not accept any responsibility or liability for any errors or omissions. Technoogies Authors do not vouch for third party sites. Visit third party sites at your own risk. Technoogies is not directly partnered with any vendor or third party. This website uses cookies only for analytics and basic website functions. Technoogies does not accept any liability that might arise from accessing the data presented on this site. Links to internal pages promotes the content of Technoogies. This article does not constitute legal advice.

Disclosure of Affiliations

Technoogies.com is affiliated with Google, Amazon, and other advertisers. Running this site costs money and if it can’t sustain itself through ad's, it’ll go bye-bye. Please help me to keep that from happening with your patronage of ads that are of interest to you.

Technical Nuggets of Knowledge
Scroll to Top