Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

First, I'm running Windows XP Home Edition Service Pack 3.

Is there any way to disable the permanent delete? Normally, deleted files go to the Recycle Bin. Can I disable the bypass-recycle-bin-delete thing? Or change the permanent-delete command from Shift+Delete to something else?

Basically, I want to require that all files have to pass through the Recycle Bin in order to be deleted.

share|improve this question
    
even if there was a way the user could still empty the recycle bin. –  Ramhound Sep 30 '13 at 21:17
add comment

1 Answer

You can use AutoHotKey to disable this key-combination.

  1. Right-click an empty spot on your desktop or in a folder of your choice.
  2. In the menu that appears, select New -> AutoHotkey Script. (Alternatively, select New -> Text Document.)
  3. Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk
  4. Right-click the file and choose Edit Script.
  5. On a new blank line you have to insert this script in the file.

    +Delete::Send {Delete}

This will block the shift + delete - keystroke and will only execute the command like just the "del" key was pressed.

You can also add a line that will disable the possibility to permanent delete this in context-menu. *But that will also block any other shift + rightclick-operation and won't work if the user first pressed the shift-key. *

+RButton::return
  1. Save and close the file.
  2. Double-click the file to launch it. A new icon appears in the taskbar notification area.
  3. Test your script.
  4. To exit or edit the script, right-click the green "H" icon in the taskbar notification area.

Tutorial-source

But as mentioned in the comments, the user can still delete the files from the recycle-bin. And also he can still delete it if he first rightclick and than presses shift. So it's just to prevent users a bit.

share|improve this answer
    
This is the best know solution. I would however completely block the shift+delete (with this method) so you'll learn not to use it anymore (for if you're behind system without this solution). Also, this won't work if you delete via right-click and then clicking "Delete" while holding the shift. –  Rik Sep 30 '13 at 21:39
1  
Your script is not correct. It should be +Delete::Send {Delete}. Yours gives an error. –  Rik Sep 30 '13 at 21:45
    
Thanks for your input. I've edited my answer. Also i've added the possibility to disable the shift + right-click. Thanks. :) –  c0dev Sep 30 '13 at 21:50
    
The right-click and then Delete in context menu + shift doesn't work. Its not the Right-click that needs to be addressed but the left-click on Delete with Shift. You can't do that in AutoHotKey. –  Rik Sep 30 '13 at 21:53
    
Edited it again. Sry I'm on mac at the moment. But the other script: `+RBUTTON::return`` works? –  c0dev Sep 30 '13 at 21:56
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.