The process cannot access the file because it is being used by another process

Written by James McDonald

May 28, 2010

Annoying problem “The process cannot access the file because it is being used by another process” trying to delete a directory.

Didn’t want to reboot because I was running a VMWare VM at the time and well real operating systems don’t make you reboot every time something untoward happens.

Tried filemon from sysinternals.com and couldn’t see any activity in the directory I was trying to delete.

so couldn’t figure out how to find which process was holding a lock on the directory I was trying to delete

Ended up Opening task manager and killing explorer.exe and then restarting by clicking File ==> New Task ==> explorer.exe {ENTER}.

Directory then deleted fine.

OS: Windows XP Professional SP3

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...