1.    04 Jun 2017 #1
    Join Date : Oct 2014
    Posts : 207
    Windows 10 x64

    Explorer: deleting files-How to skip 'An unexpected error' by default?


    Was deleting a (very) large number of small files. System is getting unresponsive and I need to wait 3-4 minutes before anything is happening.

    After finally the 'instruction' to delete was given ('OK' at 'Are you sure?') Windows Explorer starts.
    Deleting may very well take half an hour or an hour, so I went away to watch TV or do something else.

    Then after returning I noticed an error warning (explorer halted):

    --
    1 Interrupted Action
    An unexpected error is keeping you from deleting the file. If you continue
    to receive this error, you can use the error code to search for help with this
    problem.
    Error 0x80070050: The file exists.

    --

    I then tag: "Do this for all current items" and click [Try Again]
    Deleting then continues.

    Question:
    how to configure Explorer that this is the default, meaning to say, that Explorer will continue, no matter what.
    So deleting will go on, unattended.
    Right now it halts...

    =

    Click image for larger version. 

Name:	SnagIt-03062017 170905 - Copy.png 
Views:	1 
Size:	28.9 KB 
ID:	137933

    =
      My ComputerSystem Spec
  2.    04 Jun 2017 #2
    Join Date : Jan 2015
    UK, Midlands
    Posts : 10,971
    Win 10 Pro (1703)

    Suggestion or two here:
    Problems deleting large number of files - painfully slow.... - Windows 7 Help Forums

    Researching the error message didn't obviously offer a clear solution.
    You could check the event log and see if there's anything there.

    As regards continuing that action, you could write a small script in Autohotkey that would press that button; there used also to be a utility that would do that, PTFB I think.. no idea if it's compatible with Win 10.

    Here it is (free):

    Download PTFB (Push the Freakin' Button) - MajorGeeks
      My ComputerSystem Spec
  3.    04 Jun 2017 #3
    Join Date : Feb 2014
    Posts : 9,357
    Windows 10 Professional

    @tfwul
    You can modify or create a setting in the Windows Registry to keep "Do this for all current items" checked.
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager
    Modify the DWORD in the right pane, (or create it), ConfirmationCheckBoxDoForAll and set it's value to 1

    Click image for larger version. 

Name:	000238.png 
Views:	1 
Size:	21.3 KB 
ID:	137964

    Or, you can install Winaero Tweaker to do it for you.

    Click image for larger version. 

Name:	000239.png 
Views:	1 
Size:	23.9 KB 
ID:	137965
      My ComputersSystem Spec
  4.    04 Jun 2017 #4
    Join Date : Oct 2014
    Posts : 207
    Windows 10 x64
    Thread Starter

    Thanks to you both.

    As for the registry setting, I believe it is set to '1' already.

    -
    Click image for larger version. 

Name:	SnagIt-04062017 135715.png 
Views:	10 
Size:	10.4 KB 
ID:	137970
    -

    But apparently that did not really help.

    What I am not sure of right now is using the command prompt,
    something like
    del /s /q /f (followed by a part of the name, with wildcard or so)

    -
      My ComputerSystem Spec
  5.    04 Jun 2017 #5
    Join Date : Jan 2015
    UK, Midlands
    Posts : 10,971
    Win 10 Pro (1703)

    Try that utility. I remember using it years ago.

    Or you could try using a boot disk such as Kyhi's at the top of the Software and Apps section and then delete them.
      My ComputerSystem Spec
  6.    04 Jun 2017 #6
    Join Date : Oct 2014
    Posts : 207
    Windows 10 x64
    Thread Starter

    I'll check it out, thanks again.
    =
      My ComputerSystem Spec
  7.    04 Jun 2017 #7
    Join Date : Oct 2014
    Posts : 207
    Windows 10 x64
    Thread Starter

    Gave it a test with deleting 28,000 files: they were deleted within 15 seconds.
    Yesterday, due to some program mistake, I was facing 525,000 small files. Using the normal File Explorer it took many hours to delete these files. Using this command, it probably would have taken 5 minutes or so.

    del /s /q /f *.part*.tst

    (where the file contained the word: .part

    =
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Unexpected error from Performance Redirection
I'm trying to move various data files from C:\ to other drives. I successfully moved Pictures to the drive I dedicate to pictures, and Downloads to a data drive. Bu t when I try moving Desktop to a data drive, I get the attached error message:...
General Support
Deleting .ETC files
I came across a folder which was reported as empty and tried to delete it. I had to take ownership but still could not delete it --- then found it had around 10 MB of .ETC log files relating to such things as incorrect shutdown from last year and...
General Support
command line to copy files from dir A to B but skip existing ones
Hi there Is there a Windows command that can copy files from say directory A to directory B but skip any with the same name I don't want to update even if say directory A has a newer version than directory B --simply use existing names --if it...
General Support
File explorer not refreshing after deleting files in search
Using Windows 10 Home. This problem only happens if I'm performing a search. If I search within a folder for say *.* and then delete a file, the list of files does not refresh. The file remains listed even though it's been deleted. If I...
General Support
Can the "Replace or Skip Files Confirmation" window be changed
Can the "Replace or Skip Files Confirmation" window be changed to the way it was in Windows 7? The one on windows 10 is inconvenient and even at times confusing (Like when backing up text files from my hard drive to a flash drive into a fold of the...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:27.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums