More on Overriding the “Delete” Command in the Recycle Bin Context Menu in Windows Vista

In article 142 - How to hide the “Delete” command from Recycle Bin context menu in Windows Vista published on Feb 14 2007, I provided a .REG file which removes the Delete command from the Recycle Bin context menu in Windows Vista. That tip helped hundreds of users so far. This article explains how that tip works.

Creating a verb named “Delete” in the registry

After working for an hour in the registry, I found the way to hide (actually override) the system default Delete option in the Recycle Bin context menu. The trick was the create a dummy Delete verb in the registry, under the Recycle Bin namespace GUID, and assign it a different display name (such as “Search“) by altering the (default) value for the Delete verb. The user will now see Search when they right-click the Recycle Bin, and the Delete option remains hidden.

Next task is to make the Search option operable. This is done by creating the sub-key named command, and assigning c:\windows\explorer.exe as the value data, in the following registry key:

HKEY_CLASSES_ROOT \ CLSID \ {645FF040-5081-101B-9F08-00AA002F954E} \ shell \ Delete \ command

Next, create a ddeexec branch, as you can see in the REG file in article 142 - How to hide “Delete” from Recycle Bin context menu, and assigning appropriate data. The DDE string FindFolder invokes the Search window.


Copyright © 2008 Ramesh Srinivasan. All rights reserved.

RELATED POSTS


Add to Google

Leave a Reply