Sunday, June 28, 2009

Script to Hide the Recycle Bin

This could be one of the best scripts I've ever come across for editing the registry in Windows XP... this particular script will add a line in Folder Options that allows you to turn on and off the Recycle Bin from showing on your desktop (for those who do not know, you can and always could remove everything from the desktop except the Recycle Bin (trash can):

1. create a text file, renaming it Binopt.reg;
2. right click on Binopt.reg and select Edit;
3. copy and paste the following script:

aREGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\RecycleBinOnDesktop]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\NewStartPanel"
"Text"="Show Recycle Bin icon on the desktop"
"Type"="checkbox"
"ValueName"="{645FF040-5081-101B-9F08-00AA002F954E}"
"CheckedValue"=dword:00000000
"UncheckedValue"=dword:00000001
"DefaultValue"=dword:00000001
"HKeyRoot"=dword:80000001aREGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\RecycleBinOnDesktop]
"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\NewStartPanel"
"Text"="Show Recycle Bin icon on the desktop"
"Type"="checkbox"
"ValueName"="{645FF040-5081-101B-9F08-00AA002F954E}"
"CheckedValue"=dword:00000000
"UncheckedValue"=dword:00000001
"DefaultValue"=dword:00000001
"HKeyRoot"=dword:80000001

4. save it and close, then double click on the script to run it;
5. that's it... check your folder options (My Computer/Tools/Folder Options/View) and you will see a checkbox entry down the bottom that says "show recycle bin icon on the desktop";

DISCLAIMER: This has worked for me each time I've used it... however, you create/run it at your own risk... remember... backup, backup backup!

(REF: from the article Customizing Your PC with the Windows XP Registry, by Jerry Honneycutt, published June 24, 2002, downloaded on June 28, 2009 from http://www.microsoft.com/windowsxp/using/setup/expert/honeycutt_02september16.mspx).

No comments: