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


  1. Posts : 868
    Windows 10 x64
       #1

    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...

    =

    Explorer: deleting files-How to skip 'An unexpected error' by default?-snagit-03062017-170905-copy.png

    =
      My Computer


  2. Posts : 42,991
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    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 Computers


  3. Posts : 17,838
    Windows 10
       #3

    @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

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

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

    Explorer: deleting files-How to skip 'An unexpected error' by default?-000239.png
      My Computer


  4. Posts : 868
    Windows 10 x64
    Thread Starter
       #4

    Thanks to you both.

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

    -
    Explorer: deleting files-How to skip 'An unexpected error' by default?-snagit-04062017-135715.png
    -

    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 Computer


  5. Posts : 42,991
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #5

    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 Computers


  6. Posts : 868
    Windows 10 x64
    Thread Starter
       #6

    I'll check it out, thanks again.
    =
      My Computer


  7. Posts : 868
    Windows 10 x64
    Thread Starter
       #7

    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 Computer


 

  Related Discussions
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 18:25.
Find Us




Windows 10 Forums