Deleting a folder: getting double delete confirmation

Please report only one bug per message!

Moderators: white, sheep, Hacker, Stefan2

Post Reply
mitjap
Junior Member
Junior Member
Posts: 3
Joined: 2016-07-11, 19:30 UTC

Deleting a folder: getting double delete confirmation

Post by *mitjap » 2016-07-11, 19:34 UTC

Hi,

I am using Windows 10 with option:
F8/Del deletes to recycle bin

Why am I getting double confirmation to delete a folder? First there is a Total commander warning that a folder is not empty and then a recycle bin question. I would really prefer the old way of only one confirmation when deleting a folder.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36425
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2016-07-13, 20:20 UTC

You should get only one. Apparently Windows is reporting wrong state of the delete confirmation checkbox in recycle bin.

Please try this:
1. Right click on F8 Delete button
2. Choose "Properties"
3. Disable delete confirmation
4. Click OK
5. Open properties again
6. Re-enabled delete confirmation
7. Restart Total Commander
Author of Total Commander
http://www.ghisler.com

mitjap
Junior Member
Junior Member
Posts: 3
Joined: 2016-07-11, 19:30 UTC

Post by *mitjap » 2016-07-14, 08:02 UTC

I forgot to mention what I am using:
Total Commander 8.52a (x64) on Windows 10

I tried the steps you mentioned but it did not help. Maybe I should mention that this only happens for a folder. Files work as expected (they display only native recycle bin confirmation dialog).

Is there an option to turn off native dialogs and use just Total commander dialogs?

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36425
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2016-07-14, 10:13 UTC

Maybe you mean the dialog that the folder isn't empty? This is an additional warning so you don't delete a folder by mistake.
Author of Total Commander
http://www.ghisler.com

mitjap
Junior Member
Junior Member
Posts: 3
Joined: 2016-07-11, 19:30 UTC

Post by *mitjap » 2016-07-14, 10:44 UTC

No, I mean to show the dialog that the folder isn't empty but delete without showing the Windows native recycle bin warning.

Are you using the ShellApi? As far as I know using flags like this should prevent any dialog from showing:
FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36425
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2016-07-15, 16:25 UTC

Unfortunately these turn off ALL the Windows dialogs, also those for which there is no alternative in code (no callback from Windows to handle it).
Author of Total Commander
http://www.ghisler.com

Post Reply