cannot remove files or folders in use

Paul Chou 21 Reputation points
2023-05-22T12:54:13.4666667+00:00

There is a folder Intel with a file in it. When I tried to delete it, it will not let me, because it is in use by another program. It worked by going to safe mode. Yet, when I go back to normal mode, the folder with the file is back. It is open in dwm.exe. What can I do? It is in the Temp folder. It works in safe mode but when I go back to normal mode, the folder is back again. File name: 30786de4fa87fd17b8e66b75315968727820fc155cb19b90d879ef9133c1ba87

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
429 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 19,061 Reputation points Microsoft Vendor
    2023-05-23T09:20:00.0566667+00:00

    Hi,

    You can monitor the file creation using Process Monitor. Create filters that Event Class is File System, Operation is CreateFile and Path is C:\Windows\Temp\30786de4fa87fd17b8e66b75315968727820fc155cb19b90d879ef9133c1ba87. This will list the process that create the file. If the file created at boot time, choose Options - Enable Boot Logging to capture the boot-time activities.

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

    Best Regards,

    Ian Xue

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Limitless Technology 26,411 Reputation points
    2023-05-23T09:38:54.64+00:00

    Hello there,

    Have you tried an complete malware scan on your device?

    Process Explorer from Sysinternals will let you search through the handles and DLLs. Search for the directory and find out which process is "using" the folder.

    From there, you have the ability to either shut down that process, or just close that particular file handle. Be sure about what you're doing when working with the file handle directly, and make sure it's not being used by some important process.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments