Classic Shell
http://www.classicshell.net/forum/

"Delete permanently" as Shift+Del button configuration
http://www.classicshell.net/forum/viewtopic.php?f=8&t=1122
Page 1 of 1

Author:  yaroyo [ Mon Aug 19, 2013 2:23 am ]
Post subject:  "Delete permanently" as Shift+Del button configuration

I added a second "Delete" button to Classic Explorer bar,
and I want to change its function to "Delete permanently" as Shift+Del.

What changes are needed or how to configure it?

Author:  Gaurav [ Mon Aug 19, 2013 5:47 am ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration  Topic is solved

There is no built-in command for Shift+Delete but there is a solution based on AutoHotkey: (AutoHotkey is a free scripting/automation software that lets you define custom keyboard hotkeys etc)Short explanation:
1. Just download the attached ZIP file attached to this post, extract the EXE.

2. AutoHotkey compiled EXE scripts are not compatible with Windows Defender/Microsoft Security Essentials and cause them to consume large amounts of CPU which nearly makes Windows hang for long periods of time. It is a bug in Defender/MSE. You will either need to disable Defender/MSE completely from its options and use another anti-malware, or you can go to Defender settings and add exclusions for this EXE and/or its path. Excluding this EXE from scanning will prevent the hanging issue.

3. After excluding this in Defender/MSE, create a custom command toolbar button on the Classic Explorer toolbar that links to the EXE. It will send Shift+Delete instead of regular Delete.


Extra technical explanation which you can skip reading:

I have basically made a simple AutoHotkey-based script. (Go here to learn what is AutoHotkey in case you are not familiar: http://www.autohotkey.com/) The script sends Shift+Delete keystrokes. It's one of the simplest one liner Autohotkey scripts:
Send,{Shift down}{Del}{Shift up}

I have compiled the plain text script (.AHK extension) into an EXE file using AutoHotkey's AHK2EXE compiler. If you don't trust random EXEs, you can decompile the EXE using EXE2AHK to see the original script: http://www.autohotkey.com/download/Exe2Ahk.exe.

Attachments:
ShiftDel.zip [208.25 KiB]
Downloaded 624 times

Author:  Ivo [ Mon Aug 19, 2013 8:07 am ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration

You can make a batch file that deletes the selected files. You can start from the CopyParent.bat example in the help and replace the "copy" command with "del"

Author:  yaroyo [ Tue Aug 20, 2013 1:40 pm ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration

Thanks for replies GauravK and Ivo,
I opted for GauravK 's ZIP file attached to the post,
using ShiftDel.exe being easier for me.

Yes, it's working ! Many thanx !


Author:  juwa [ Fri Mar 11, 2016 2:46 am ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration

The original file no always worked correctly . He moved some often files to the Trash instead permanently . That's why I modified the script . I added delays between keystrokes and I used the latest AutoHotkey 64bit. Now everything is working properly.
I attach the new .exe file. ;)

Attachments:
ShiftDel_new.zip [479.95 KiB]
Downloaded 365 times

Author:  yaroyo [ Fri Mar 11, 2016 4:11 am ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration

juwa wrote:
I used the latest AutoHotkey 64bit.



Does it work on Windows 8 32 bit?

Author:  MikeGicask [ Sat Mar 25, 2017 12:19 pm ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration

When you're creating the Delete Permanently option is there any way to retrieve said file if it was done by accident?

Also communicating with talktobabes support has given me some recovery options.

Author:  Ivo [ Sat Mar 25, 2017 12:33 pm ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration

You may have some luck with some third party undelete utility. They can scan your drive for remnants of deleted files.

Author:  Gaurav [ Sat Mar 25, 2017 9:32 pm ]
Post subject:  Re: "Delete permanently" as Shift+Del button configuration

MikeGicask wrote:
When you're creating the Delete Permanently option is there any way to retrieve said file if it was done by accident?



One of the well known freeware tools to undelete is Recuva (https://www.piriform.com/recuva).

Disclaimer: Anything that happens to your PC from usage of third party tools recommended in this forum is your own responsibility.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/