Windows 7 x64 user.

If I try to rename a folder after opening and closing it, and that folder contains an executable, Windows will deny the operation with a "Folder in use" message.

If I don't open the folder beforehand the problem doesn't appear.

Fortunately the problem persists only for a few dozen seconds. After enough time passes, I can rename the folder without any problem. Unless of course I open and close it again...

I have no idea why this happens. Can anyone help me solve this problem?

EDIT: If I try to delete the folder, a "Folder Access Denied" window pops up, saying that I need permission from myself to perform that action. I tried using a software called TakeOwnershipEx to take permission of the folder, but to no avail.

  • Sounds like your antivirus software is scanning the EXEs and locking the folder. Does disabling the appropriate antivirus feature help?
    – Ben N
    Jun 27, 2016 at 18:42
  • Disabled the antivirus completely. Nothing changed.
    – BurningFox
    Jun 27, 2016 at 18:48

1 Answer 1


I found an answer on the site. It's a small piece of software that tells you what program is marking a file as "in use". I found it because I thought windows indexing might be giving you fits. If the directory is actively being indexed I could see that being an issue. But it looks like this little program in the link below might shed some light on it.

How can I rename files and folders in Windows that are in use?

  • Thanks. The folders are locked by the System process, PID 4. Oh, and indexing (I assume you are referring to Windows Search) is disabled.
    – BurningFox
    Jun 27, 2016 at 18:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.