Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form

The action cannot be completed because the folder or file is open in another program: Determine where a file is open in Windows

Posted on 24/10/202017/10/2023 IT Expert By IT Expert No Comments on The action cannot be completed because the folder or file is open in another program: Determine where a file is open in Windows
  1. Home
  2. Windows
  3. The action cannot be completed because the folder or file is open in another program: Determine where a file is open in Windows
File in use

You may get a prompt with the following error below when you attempt to delete a folder in Windows 10 or Windows Server. I ran into this issue when I wanted to delete some residues left from the Windows File System (unmounted Windows 10 image (install.wim) file). Read on to discover how to determine where a file is open in Windows. In this article, we shall discuss how to fix “the action cannot be completed because the folder or file is open in another program: Determine where a file is open in Windows”. Please see how to Hide the Action Center Taskbar Icon In Windows 10, and how to determine the last boot time of a Windows Server.

The “File Is Open in Another Program” error can be frustrating to solve. Fortunately, there are a number of ways to tackle this issue.

Windows file open

Here are some possible other errors you can encounter relating to WDS. Error 0xc1570103: The license file was not found in the specified path, how to fix error 0xc1510114: The wim file needs to be remounted, ensure the image is mounted. Also see this article on how to mount an image, and how to remove packages from the Windows image.

Reason for the error “The action cannot be completed because the folder or file is open in another program”

There is not a single fix for this issue as shown below. Hence, please follow the steps described below to resolve this issue.

Note: This error is not a permission issue, and as such do not consider checking that.

In order to resolve this issue before employing the hard way to reboot your server which can possibly fix this issue. This is also not recommended because, if the server is a production server, you cannot just reboot it as it is a critical system and must not be interrupted.

Steps to Determine Where a File is Open in Windows

Step 1: Open the program path via Windows 10 Task Manager. This step is relatively straightforward. Open the Task Manager by right-clicking on your Windows Taskbar or use the keyboard shortcut [CTRL+ Shift + Esc] to start the Windows 10 Task Manager.

In the Task Manager click More Details and then, select the Tab “Processes”. As we can see below, there is currently no process using the files.

Unable to complete action

Step 2: Sing the “Resource Monitor“

To determine where a file is open in Windows, you can use the Resource Monitor which is an inbuilt tool for Windows devices to find which handle or DLL is using it.

Open Resource Monitor, There are a couple of ways of doing this. So, from the Task Manager, Under the Performance Tab, click on the Resource Monitor as shown below.

Alternatively, you can search for the “Resource Monitor or resmon.exe” in the start menu.

Identify open file location

Click on the CPU tab. As you can see, there is no associated handler as well. However, if there are associated handles, use the search field in the Associated Handles. With this handle, you can identify the process by looking at the Image or PID column and then kill it.

Also, see “how to allow only admin users (administrators) to shut down and reboot Server 2012“, How to uninstall Git from MacOS, and “how to fix Error 1064: An exception occurred in the service when handling the control request“.

Step 3: Process Explorer from Sysinternals

This is similar to the method described in Step 2 above. But it depends on the tool you love most.

For more information on the Sysinternals tool and how it can help you determine where a file is open in Windows, see the following article. For more information on SysInternal Tools and how some of the SysInternals tools are used locally on your device. Alternatively, see how to use the SysInternal suit online tool.

Step 4: Reboot the Server

This is usually the last resort but also did not fix my issue.

Unfortunately, none of these steps worked, not even a Server reboot.


Note: MDT was closed, and the “install.wim” unmounted (discarded) and the install.wim file properly cleaned as shown below. See the following guide on how to unmount a Windows Image File (WIM), see the following link.

My solution: I ended up logging on using the local Administrator account and was able to delete the folder! 

This was not an issue with permission. For issues relating to permission, see the following articles, Folder Access Denied, you require permission from SYSTEM: Unable to delete old Windows folder, Error: 0xc1510111 You do not have permissions to mount and modify this image and You require permission from trustedinstaller: How to delete or rename files protected by Trusted Installer.

I hope you found this blog post on how to determine where a file is open in Windows helpful. Please let me know in the comment session if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:Windows 10, Windows Server 2016

Post navigation

Previous Post: Open the location of a Program: How to search in Windows 10 to find a file, folder, or program in File Explorer
Next Post: Error 0x800f0830: Discard the modified Image and start again, no operation was performed

Related Posts

  • Featured image What are system partition and boot partitions in Windows
    What are System Partition and Boot Partition in Windows? Windows
  • tux through window 620x354 1
    WSL Error 0x8007019e: WSL Register Distribution failed with error Windows
  • Featured image dataTransfer.
    How to transfer data from an old PC to a new PC Windows
  • Remote Desktop Connection Windows 10 min
    Fix Remote Desktop Connection issues (Error 0x204) Windows
  • Convert PEM to PPK 1
    Convert a PEM Key to a PPK Key on a Linux and Windows AWS/Azure/OpenShift
  • screenshot 2020 02 07 at 21.56.50
    Setup Kiosk Mode on Windows 10 with AD User Account Windows

More Related Articles

Featured image What are system partition and boot partitions in Windows What are System Partition and Boot Partition in Windows? Windows
tux through window 620x354 1 WSL Error 0x8007019e: WSL Register Distribution failed with error Windows
Featured image dataTransfer. How to transfer data from an old PC to a new PC Windows
Remote Desktop Connection Windows 10 min Fix Remote Desktop Connection issues (Error 0x204) Windows
Convert PEM to PPK 1 Convert a PEM Key to a PPK Key on a Linux and Windows AWS/Azure/OpenShift
screenshot 2020 02 07 at 21.56.50 Setup Kiosk Mode on Windows 10 with AD User Account Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • banner 6
    How to Set a Static IP Address in Windows 11 Windows
  • PXE Boot Stuck or No Boot Image was found   Te bootloader did not find any operating system
    Fix PXE Boot Stuck or No Boot Image was found for HyperV VM Virtualization
  • windows 10 spying 1200x687 1
    Error 183: Specified image is being serviced by another DISM operation Windows Server
  • How to stay protected on Windows 10 and11 device with Windows Security
    Stay protected on Windows device with Windows Security Security | Vulnerability Scans and Assessment
  • images 5 1
    How to access MySQL Server from command Prompt Oracle/MSSQL/MySQL
  • SysInternals
    Use Active Directory Explorer from Sysinternals Windows
  • Machine does not support XSAve
    How to disable side-channel mitigations on VMware Workstation Virtualization
  • screenshot 2020 02 08 at 17.31.28
    How to perform Password Change with OWA Network | Monitoring

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,796 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.