Share via

File or folder is open in another program

D Myr 10 Reputation points
2026-05-02T19:32:49.0733333+00:00

I am trying to rename a folder and keep getting the message saying “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.”

it isn’t open anywhere and to be sure I rebooted the computer and the first thing I did was go to rename the folder, I had not opened or run anything else after booting before trying to rename the folder and got the same message. I shut it down and rebooted a second time and the same issue. Windows seems to know it is open somewhere so theoretically would know what program it is supposedly open in but for some reason it doesn’t tell you.

When answers.microsoft.com was operating I know I had read a few posts with similar issues and there was a small utility you could install in order to find out what program was using it or to release the file but unfortunately I can’t find it since they shut down that forum. I had hoped they had transferred everything to this new forum but apparently not.

I would appreciate some assistance in being able to find out what program is supposedly using the folder and how to have Windows release it.

Thank you

Windows for home | Windows 10 | Files, folders, and storage
0 comments No comments

2 answers

Sort by: Most helpful
  1. MotoX80 37,686 Reputation points
    2026-05-02T21:22:26.8966667+00:00

    Use the handle utility.

    https://learn.microsoft.com/en-us/sysinternals/downloads/handle

    It's a command line utility, so you need to open a command or powershell prompt with "run as administrator".

    Then just run "handle your-file-or-folder-name'.

    Was this answer helpful?

    0 comments No comments

  2. Jeronimo Fuerte 39,690 Reputation points Independent Advisor
    2026-05-02T21:20:13.41+00:00

    The utility you are remembering was probably Microsoft Sysinternals Process Explorer. Both are Microsoft tools. Process Explorer can show which process has a file or directory handle open, and Handle is the command-line version for finding open file/folder references.

    Try this:

    1. Download Process Explorer from Microsoft Sysinternals.
    2. Right-click procexp.exe and select Run as administrator.
    3. Press Ctrl + F or go to Find > Find Handle or DLL.
    4. Type part of the folder name, or the full folder path, for example: C:\Users\YourName\Documents\FolderName
    5. Process Explorer should list the program that has the folder or something inside it open.
    6. Close that program normally if possible. If it shows explorer.exe, open Task Manager, right-click Windows Explorer, and choose Restart.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.