Hiding and Showing Recyle Bin Using Batch Files

There are a few way to hide your Recycle Bin. The question is, "why would I hide it? would it gonna be a troublesome later?" The answer is, it just differ on your preference. Some people don't like any icons or files or folders on their desktop, and that's including me ^^ So I just delete some file by pressing Shift+Delete. But we're not gonna talk about this for now. Here I'm gonna show how to hide your Recycle Bin on the desktop using cmd, or batch files. This also can be done using registry. I'll post about that way later ^^

First right click on your destop and make 2 new text files

Then write this code
on the first text file:
cmdow.exe @ /hid

@echo off
REGEDIT /S "Hide Recycle Bin.reg"
copy "Show Desktop Recycle Bin.lnk" "%AllUsersProfile%\Start Menu"
Del "%AllUsersProfile%\Start Menu\Hide Desktop Recycle Bin.lnk"
pskill explorer.exe
exit
Rename it to anything, for example "Perish.cmd"


As for the 2nd text file, write this code to make the Recycle Bin show again
cmdow.exe @ /hid
@echo off
REGEDIT /S "Show Recycle Bin.reg"
copy "Hide Desktop Recycle Bin.lnk" "%AllUsersProfile%\Start Menu"
Del "%AllUsersProfile%\Start Menu\Show Desktop Recycle Bin.lnk"
pskill explorer.exe
exit
And again, rename to any name that you like, "Exist.cmd" for example

0 comments:

Post a Comment