[solved] TC 9.5b5 - Inconsistant implementation of delete to recycle bin
Moderators: Hacker, petermad, Stefan2, white
[solved] TC 9.5b5 - Inconsistant implementation of delete to recycle bin
Applies to Windows Vista -> Windows 10
Scenario 1:
1. Set VistaDelete=-1 in wincmd.ini.
2. Enable "F8/Del deletes to recycle bin (shift=directly)" in the "Copy/Delete" configuration.
3. Enable the Recycle bin for the current drive (right click on the Recycle bin icon on the desktop an choose Properties).
4. Disable "Display delete confirmation dialog" for the Recycle bin.
5. Pres Delete on a file - TC asks in its own dialog whether to move the file to recycle bin.
6. Press OK and the file is moved to recycle bin.
7. Press Shift+Delete - TC asks to permanently delete the file.
8. Press OK and the file is deleted.
This is all as expected.
Scenario 2:
1. Set VistaDelete=-1 in wincmd.ini.
2. Disable "F8/Del deletes to recycle bin (shift=directly)" in the "Copy/Delete" configuration.
3. Enable the Recycle bin for the current drive (right click on the Recycle bin icon on the desktop an choose Properties).
4. Disable "Display delete confirmation dialog" for the Recycle bin.
5. Pres Delete on a file - TC asks to permanently delete the file.
6. Press OK and the file is deleted - as expected
7. Press Shift+Delete - TC asks in its own dialog whether to move the file to recycle bin.
8. Press OK and a Windows dialog box asks to permanently delete the file!
9. Press Yes and the file is deleted.
It is unexpected that Windows' dialog is shown and that is asks to delete permanently - I would expect moving to recycle bin as TC asks in 7.
10. Now enable "Display delete confirmation dialog" for the Recycle bin.
11. Press Shift+Delete again on a file.
12. TC does not ask to move the file to recycle bin as in 7.
13. A Windows dialog box asks to move the file to recycle bin.
14. Press Yes - and the file is moved to recycle bin - as expected.
Why this difference in Scenario 1 and 2? - I would expect that the function is simply reversed when I disable "F8/Del deletes to recycle bin (shift=directly)" - so that a press on Delete will simply delete the file (as i also does) and that Shift+Delete would simply make TC ask to move the file to recycle bin, without any confirmation boxes from Windows.
And I would certainly not expect that changing the "Display delete confirmation dialog" for the Recycle bin would change whether Window will permanently delete or move to Recycle bin.
NOTE: If VistaDelete=1 - everything works as expected with all combinations of "F8/Del deletes to recycle bin (shift=directly)" and "Display delete confirmation dialog" for the Recycle bin.
Scenario 1:
1. Set VistaDelete=-1 in wincmd.ini.
2. Enable "F8/Del deletes to recycle bin (shift=directly)" in the "Copy/Delete" configuration.
3. Enable the Recycle bin for the current drive (right click on the Recycle bin icon on the desktop an choose Properties).
4. Disable "Display delete confirmation dialog" for the Recycle bin.
5. Pres Delete on a file - TC asks in its own dialog whether to move the file to recycle bin.
6. Press OK and the file is moved to recycle bin.
7. Press Shift+Delete - TC asks to permanently delete the file.
8. Press OK and the file is deleted.
This is all as expected.
Scenario 2:
1. Set VistaDelete=-1 in wincmd.ini.
2. Disable "F8/Del deletes to recycle bin (shift=directly)" in the "Copy/Delete" configuration.
3. Enable the Recycle bin for the current drive (right click on the Recycle bin icon on the desktop an choose Properties).
4. Disable "Display delete confirmation dialog" for the Recycle bin.
5. Pres Delete on a file - TC asks to permanently delete the file.
6. Press OK and the file is deleted - as expected
7. Press Shift+Delete - TC asks in its own dialog whether to move the file to recycle bin.
8. Press OK and a Windows dialog box asks to permanently delete the file!
9. Press Yes and the file is deleted.
It is unexpected that Windows' dialog is shown and that is asks to delete permanently - I would expect moving to recycle bin as TC asks in 7.
10. Now enable "Display delete confirmation dialog" for the Recycle bin.
11. Press Shift+Delete again on a file.
12. TC does not ask to move the file to recycle bin as in 7.
13. A Windows dialog box asks to move the file to recycle bin.
14. Press Yes - and the file is moved to recycle bin - as expected.
Why this difference in Scenario 1 and 2? - I would expect that the function is simply reversed when I disable "F8/Del deletes to recycle bin (shift=directly)" - so that a press on Delete will simply delete the file (as i also does) and that Shift+Delete would simply make TC ask to move the file to recycle bin, without any confirmation boxes from Windows.
And I would certainly not expect that changing the "Display delete confirmation dialog" for the Recycle bin would change whether Window will permanently delete or move to Recycle bin.
NOTE: If VistaDelete=1 - everything works as expected with all combinations of "F8/Del deletes to recycle bin (shift=directly)" and "Display delete confirmation dialog" for the Recycle bin.
Last edited by petermad on 2019-11-28, 00:35 UTC, edited 2 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
petermad,
I guess there is a typo, you have two "Scenario 1"'s.
Roman
I guess there is a typo, you have two "Scenario 1"'s.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
This is indeed a bug - it happens only when you release the Shift key before the Explorer dialog comes up.8. Press OK and a Windows dialog box asks to permanently delete the file!
This is intentional: When using the Explorer delete method (VistaDelete!=0), then it should be the Explorer showing the delete confirmation. TC only shows it in scenario 1 because the Explorer conformation dialog was disabled, and due to the bug not deleting to recycle bin.12. TC does not ask to move the file to recycle bin as in 7.
13. A Windows dialog box asks to move the file to recycle bin.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
Yes, sorry - corected nowI guess there is a typo, you have two "Scenario 1"'s.
If I keep the Shift key down until I have pressed the Yes button in TC's dialog, then the file is still permanently deleted in stead of being moved to recycle bin as it should - but there is no Explorer dialog shown then.8. Press OK and a Windows dialog box asks to permanently delete the file!
This is indeed a bug - it happens only when you release the Shift key before the Explorer dialog comes up.
So there are 2 bugs:
1. Showing the Explorer dialog.
2. Permanently deleting in sted of moving the file.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
Confirmed fixed in TC9.5b6
But it is not documented in history.txt

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
What needs to be documented? It's just a bugfix, not a new feature.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
I am talking about history.txt - it documents all kinds of fixes - I am not talking about the What's New in Help or at https://www.ghisler.ch/board/viewtopic.php?f=3&t=54942
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
Ah, I see, must have missed it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: TC 9.5b5 - Inconsistant implementation of delete to recycle bin
history.txt:

So, confirmed fixed in TC 9.5b715.11.19 Fixed: With VistaDelete=-1 and "F8/Del deletes to recycle bin" disabled and no Windows delete confirmation dialog, Shift+Del on a file
didn't delete to recycle bin (32/64)

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar