Saturday, December 27, 2008

Add Recycle Bin to Folder Options

Listings 1 and 2 are the direct way to hide the Recycle Bin icon. To demonstrate one of the cooler ways to hack the Windows XP registry, I'll show you a better way to hide the icon. We'll give it a user interface.
Listing 3 does just that. It extends Folder Options by adding an option for showing the Recycle Bin icon on the desktop. Customizing the key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder is how you add options to this dialog box. Advanced users can use this key as a guide for how to extend it. Beginners can use this script to add an option for the Recycle Bin icon: Save Listing 3 below in the text file Binopt.reg and then double-click it. After importing Binopt.reg into the registry, a new option is listed in the Folder Options dialog box that lets you configure the Recycle Bin icon, as shown in Figure 1.

Figure.1



To hide or show the Recycle Bin icon using Folder Options, follow these steps:
1.
In Windows Explorer, on the Tools menu, click Folder Options.
2.
On the View tab, under Advanced Settings, do one of the following:

Select the Show Recycle Bin icon on the desktop check box to show the icon on your desktop.

Clear the Show Recycle Bin icon on the desktop check box to remove the icon from your desktop.

No comments: