Feature Request: New command for Explorer delete method
Moderators: white, Hacker, petermad, Stefan2
Feature Request: New command for Explorer delete method
The TC's internal delete method lacks for handling folder, the deleted folder name can not appear in the trash, only the files appear in the trash, if you just delete a empty folder, it's just totally deleted, you have no chance to recovery the folder name, and the speed of internal delete method is slow, but as I use file comment, so TC's internal delete method is essential to be default.
When I delete folder(s), I normally first select the folders then Shift + F10(Context Menu), then 'D' to use the Explorer delete method, it's really not convenient.
In the configuration dialog, there is a option: Use Explorer delete method(faster, cannot handle comment), I'd like to have a new internal command as cm_ExplorerDelete to use the Explorer delete method separately, so I can assign a keyboard shortcut to it and use it as like.
Hope it will be implemented in the forthcoming TC7 if it's not difficult to be accomplished.
When I delete folder(s), I normally first select the folders then Shift + F10(Context Menu), then 'D' to use the Explorer delete method, it's really not convenient.
In the configuration dialog, there is a option: Use Explorer delete method(faster, cannot handle comment), I'd like to have a new internal command as cm_ExplorerDelete to use the Explorer delete method separately, so I can assign a keyboard shortcut to it and use it as like.
Hope it will be implemented in the forthcoming TC7 if it's not difficult to be accomplished.
- ghisler(Author)
- Site Admin
- Posts: 48077
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The problem is the following: The function SHFileOperation which is used to delete to recycle bin doesn't allow to determine whether the file/dir will really go to recycle bin or not. If it does, then all is OK (deletion of entire folders is instntaneous). If it doesn't it could take a LOT of time because Windows is deleting all files individually, and it CANNOT be aborted! That's why Total Commander has to delete all files one by one.
The alternative is to check the option "use Explorer delete method" in Configuration - Copy/Delete. Then the deletion is performed as in Explorer. The downside is that comments cannot be removed for files from descript.ion.
The alternative is to check the option "use Explorer delete method" in Configuration - Copy/Delete. Then the deletion is performed as in Explorer. The downside is that comments cannot be removed for files from descript.ion.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
I remember that I suggested to enhance the Explorer delete method. There should be a new setting which uses the Explorer method only for "move to recycle bin" but still uses the internal method for deleting.he alternative is to check the option "use Explorer delete method" in Configuration - Copy/Delete. Then the deletion is performed as in Explorer.
- ghisler(Author)
- Site Admin
- Posts: 48077
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
So do you know a way to determine whether a deletion on a specific drive goes to recycle bin or not?There should be a new setting which uses the Explorer method only for "move to recycle bin" but still uses the internal method for deleting.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48077
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Because you wrote this:
To do this, it's necessary to know when a file/folder would be deleted to recycle bin and when it would be deleted directly.There should be a new setting which uses the Explorer method only for "move to recycle bin"
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
No I guess you misunderstood my request. When the uset set Win95Delete to 1 you call ShFileOperation with the allowundo flag when I press F8. When I press Shift+F8 you call ShFileOperation without allowundo.
I want to use the first described behavior but not the second. To accomplish this a new option value for Win95Delete could be introduced.
No I guess you misunderstood my request. When the uset set Win95Delete to 1 you call ShFileOperation with the allowundo flag when I press F8. When I press Shift+F8 you call ShFileOperation without allowundo.
I want to use the first described behavior but not the second. To accomplish this a new option value for Win95Delete could be introduced.
- ghisler(Author)
- Site Admin
- Posts: 48077
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That's not correct - when you press Shift+F8, I don't call SHFileOperation, I call DeleteFile directly!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
Here is a screenshot:
http://www.lefteous.de/tc/images/misc/shdelete.png
That doesn't looks like DeleteFile...
That's not correct!That's not correct - when you press Shift+F8, I don't call SHFileOperation, I call DeleteFile directly!
Here is a screenshot:
http://www.lefteous.de/tc/images/misc/shdelete.png
That doesn't looks like DeleteFile...
- XPEHOPE3KA
- Power Member
- Posts: 854
- Joined: 2006-03-03, 18:23 UTC
- Location: Saint-Petersburg, Russia
Thank you for your explanation. Mr.Ghisler, but sorry, I don't quite understand.
I just want a new internal 'cm_' command, this 'cm_' command(for example its name is 'cm_ExplorerDelete') explicitly use the "Explorer delete method" to delete folders or files.
When I use the new internal command 'cm_ExplorerDelete' to delete sth, the delete action will perform as if I have checked the option "use Explorer delete method" in Configuration - Copy/Delete.
With 'cm_ExplorerDelete', I can assign this new internal command a keyboard shortcut, and use it as like.
At present, there is two ways if I want to use the "Explorer delete method": First, as you said I must check the option "use Explorer delete method" in Configuration - Copy/Delete, but the nagative is file comment can not be handled. Second, see my first post, use the keyboard Shift + F10, then press 'D', then Enter, it will use the "Explorer delete method", but it's really not convenient.
Ah, for clarification, my setting of recycle bin is default, I change nothing about the recycle bin, in Windows Explorer, the deleted folders or files goto the recycle bin directly.
I just want a new internal 'cm_' command, this 'cm_' command(for example its name is 'cm_ExplorerDelete') explicitly use the "Explorer delete method" to delete folders or files.
When I use the new internal command 'cm_ExplorerDelete' to delete sth, the delete action will perform as if I have checked the option "use Explorer delete method" in Configuration - Copy/Delete.
With 'cm_ExplorerDelete', I can assign this new internal command a keyboard shortcut, and use it as like.
At present, there is two ways if I want to use the "Explorer delete method": First, as you said I must check the option "use Explorer delete method" in Configuration - Copy/Delete, but the nagative is file comment can not be handled. Second, see my first post, use the keyboard Shift + F10, then press 'D', then Enter, it will use the "Explorer delete method", but it's really not convenient.
Ah, for clarification, my setting of recycle bin is default, I change nothing about the recycle bin, in Windows Explorer, the deleted folders or files goto the recycle bin directly.
A button for me…
2WatchUer
Hello !
• I support your request, since indeed such a command should be handy.
- When one wants to change often the delete method when needed, a simple shortcut
(or rather a bistable button for me) could do the trick perfectly.
Kind regards,
Claude
Clo
Hello !
• I support your request, since indeed such a command should be handy.
- When one wants to change often the delete method when needed, a simple shortcut
(or rather a bistable button for me) could do the trick perfectly.
Kind regards,
Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact: