1

So I have encountered this problem and successfully recreated it numerous times.

The problem is simple: whenever using any software other than explorer, to delete/move/copy/rename... contents of a any folder, if that folder is opened in explorer while the operation is running, explorer will instantly use up 100% CPU to refresh the folder, and slow down the operation, and cause my computer to become very irresponsive(not freezed), and keep doing so until either the operation has ended or the folder is closed in explorer...

So is this the normal behavior of Windows? Is this a bug? How can I fix(or improve) this? I am using Windows 10 20H2 x64 if that helps.

Edit: I can confirm there are no system file corruptions, I have run DISM and SFC numerous times and they can't fix this issue, they fail to detect any problem. Also I had just reinstalled Windows very recently. I have also run many hard disk utilities to check if hard drives have any bad sectors, and there is none. And I have also run chkdsk numerous times and no filesystem corruptions. So they are not the case.

Example: Try this in PowerShell, it should recreate the problem described, use at your own risk.

$test=[string]"C:\test"+$(get-random)
md $test
explorer $test
taskmgr
0..10000 | % {ni "${test}\${_}.txt"|out-null}
(gci $test).fullname | %{ri $_}
rd $test

Screenshot:enter image description here

P.S. If it really succeeded recreating the problem described, just restart explorer, and let PowerShell do its job, don't close PowerShell before it completes deletion, because explorer deletion speed is lower than PowerShell(maybe)(because explorer will compute number of files and ETA before deletion, the script finds one and deletes one)

Edit:

I use PowerShell 7.1 and

gci $test | %{ri $_}

works fine, but it might not work on lower versions of PowerShell, So I generalized it, now lower versions of powershell can find the paths.

Proof:

enter image description here

If the files were not deleted first, removing the folder will cause it prompt the warning Recurse parameter not specified and asking for confirmation.

Context Menus:

Desktop:

enter image description here

Explorer(not "This PC"):

enter image description here

"This PC"

enter image description here

"New"

enter image description here

My hard drives are Hard Disk Devices, I guess you people are all using Solid State Drives? You are so rich...

9
  • Sounds like a bug to me. Perhaps someone can trace this for you with Process Explorer and using that PS logic to try to figure out what is being done behind the scenes to cause this behavior with File Explorer. There should be some way of determining what's sucking up the CPU during these operations. Commented Dec 18, 2020 at 3:52
  • Do you have network shares mounted/mapped, as that can cause the issue experienced, as can third party context menu items (search on here for how to check)
    – JW0914
    Commented Dec 18, 2020 at 14:27
  • @JW0914, I don't know what network shares is, though it seems to be related to servers, I am not running a server and I don't share files, I am not in a homegroup, as for context menu items, I disabled most of them, I will look into it. Commented Dec 18, 2020 at 15:27
  • 1
    The script does not work. It creates a folder named C:\test987554766 with 10000 files, then fails with many messages like ri : Cannot find path 'C:\Temp\265.txt' because it does not exist. until it stops. No excessive CPU utilization.
    – harrymc
    Commented Dec 18, 2020 at 17:09
  • Yes, the post is too hard to answer in its current form: The script does not demonstrate the problem and the screenshots are not helping.
    – harrymc
    Commented Dec 21, 2020 at 19:23

2 Answers 2

2
+50

I had a similar problem on a specific folder with Windows Explorer. I disabled thumbnails to avoid high cpu usage. Maybe it helps you, How to disable thumbnails on Windows 10

2
  • Congratulations! You got lucky, because someone has upvoted your answer, though it didn't solve my problem, the website will automatically award the bounty to you anyways, and it seems the answer I had waited for will never come...So I will upvote your answer and accept it. Commented Dec 25, 2020 at 9:02
  • Sorry that the solution didn't work. The score doesn't matter. I hope the problem has a valid reason. Commented Dec 25, 2020 at 9:12
0

How can I fix(or improve) this?

The official way of reporting issues with Windows is to use their "Feedback Hub" app, included with Windows 10: https://www.microsoft.com/en-us/p/feedback-hub/9nblggh4r32n

Feedback Hub

This then relies on upvotes and such, like you'd expect to find with most crowdsourced feedback.

This is a replacement of the now-defunct http://connect.microsoft.com/ that attempted to do the same thing.

Unfortunately, collecting issue reports and acting on them do not go hand in hand. Well documented, easily reproducible bugs (like not being able to undo the actions taken by using a Quick Step action in Outlook) go for years and versions of Windows just collecting upvotes and dust.

So is this the normal behavior of Windows? Is this a bug?

It doesn't sound unreasonable that two applications working on the same dataset at the same time would run into record locks and so forth that either the system or the software would have to overcome, and that CPU usage would get out of hand. Especially when it comes to Windows File Explorer showing the contents of a directory. Windows 7/8/Vista was horrible at refreshing the directory in the first place, even without something in the background changing the contents it's meant to display. Windows 10 is much better, but still not great. So, is it normal? Yes. Is it a bug? Maybe.

Report the issue, and find a way around what you're trying to accomplish.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .