Hello guys, this is Master Jake. I really want to jump right into this tutorial because this is like my 38th time doing this.
Basically, what we’re going to be doing is creating a recycle bin just another one. And it’s kind of a nifty cool trick you can do. I don’t want to bore you so we’re going to go and get started. There’s plenty of tricks you can do with the computers, you know, how to deal with a batch programming, with a registry editing. I’ll be showing you everything you need to know today.
So, just follow along with my steps exactly. And even a complete beginner could create their own recycle bin. All right, so the first thing that we want to do is open up my computer. Now, I have a folder in here already. I’m going to go ahead and do something real quick. Just ignore this, I need to—okay! See RB2 here, just go into your C drive and create a folder, just right click, new folder and just type RB2, or whatever you want you second recycle bin. This name really doesn’t matter, just give it a unique name, pretty simple RB2. And then, what we’re going to do is we want to right click and click sent to desktop, create shortcut right here. And that way we have a shortcut so we can view the files inside this folder from my desktop just like the normal recycle bin. But we don’t want this folder to be viewable in the C drive. So, what we’re going to do, just type, follow along with me exactly if you’d never this done this before. Click start, run, type in CMD and click enter.
Now, what we want to do is—if we named it RB2 which we did, we want to get the direct path through it, so type attrib space in quotes, C:\RB2 that’s what I named mine. Then space +r, space +s, space +h and just type exit. And you’ll notice that RB2 is no longer visible here, so we can never click that or enter it without clicking this shortcut that we made on our desktop.
All right! We can go ahead and exit our C drive now. I’m going to drag this up a bit and right here, we’re going to click this. And you can't see down here—at the bottom click properties on that then go to the shortcut tab and click change icon, we’re going to scroll over it and just select a full recycling bin for the icon, And click apply and OK. And now, we have nice little icon here. We’re going to rename this, recycle bin 2.
All right! We’ll just leave that there for now. Now, we need to create two batch files and this is going to be useful in a few minutes when we move on with the registry contacts menus. So, just open up a notepad and I don’t want the word batch files, if you’ve never heard it before. It’s just really simple thing that we’re going to do. Type exactly what I’m typing right now, if you’ve never batch file before. If you do then you’ll know what I’m doing. This is going to be the batch file that moves the file you selected into the new recycle bin. So, we’re going to move %1 and then we want to type in the folder directory in quotes RB2 and open that final back slash, I don’t know if it needs to be there or not but it’s fine. Let’s go up here and type CLS and then echo moving file to recycle bin 2. Just to tell what it’s doing if it takes awhile. Now, it’s going to exit out as soon as it’s finished which will be pretty fast but if it takes a lot at least it would tell him what it’s doing.
Let’s go ahead, that’s all I need to know. What %1 is going to do, it’s going to take out, that’s going to pass in a value of the file that we have selected, so if we drag a file onto this batch file then it’s going to take that file as the file we’re trying to move in and it will move it. So, let’s go ahead and Ctrl+S or file save, save this, put it on the desktop for now. You quote RB2 to bin.bat and change Save as type to All Files and click save. And that’s just going to be the batch file that moves the file.
Now, we need one more to empty the recycle bin. So, open up notepad again. This one, type exactly as I’m typing. We’re going to type emptying recycle bin 2. And then here’s a bit of the tricky part, it took me a bit but I decided to just do it this way for simplicity. What we’re going to do is we’re going to remove the recycle bin directory and every file and folder beneath it. So, it’s virtually going to delete everything inside the recycle bin directory, the RB2 directory and the directory itself, then we’re going to add another command to recreate the directory and rehab it. So first, we need to make it visible, so type attrib C:\RB2 –r, -s, -h, to make it visible. It helps CMD find it better. We don’t want any errors to pop up. Sometimes they won’t but on some computer they will, so just do it this way. Now RD space /s, that’s going to delete all files inside the directory as well and all directories inside that and all files inside that and all directories inside that for eternity until it gets all the files deleted. We also want it to be quiet, so it doesn’t ask you if you want to delete stuff. So, /q and then we’re going to type the directory again C:\RB2. So, that’s what we’re going to be deleting here.
Now, after everything has been deleted, we want to recreate that. So, MD or we’ll navigate to C directory, C: and then we’ll create the folder again MD RB2. And then we will hide it again, attrib RB2 +r +s +h. Now, I know that it has a lot of code, it may look confusing, just type it the way I did. If you understand batch then you’ll know exactly what’s going on. It’s just basically removing all that navigate into the C drive, just for simplicity, recreating the directory and rehiding it so let’s go ahead and click file and save. And then on our desktop here we are going to—we’re going to name this RB2del.bat, change Save as type to All Files, and then click Save. All right, now, we need to put this in system32, so we can just get them out of our way. So, open up your C drive and go into windows and then find system32, just be right here, just highlight those two files and drag them in, make sure you get them in the system32. And if you’re on vista you’ll need to confirm the action, like click and continue.
Now that the files are in there, the only thing left to do is create the registry entries. So, we’ll go over here to the start menu and click run, type regedit and click OK from this you’ll need to confirm the action. Now, I’m going to close everything out that I’ve previously done just to show you where you stand at. All right! So, most likely you’ll see either computer or these five keys, either one is found just click these arrows to expand each entry. Going to HKEY classes root expand that. Now this is the part where you decide what you want to delete. If you want to delete every file or if you want every file to have the context menu on it, basically when you right click a file and you see all these menu options, we’re going to be adding one. If you want it on every file this is a jpeg file, you see that jpg at the end. So, if we only want it to appear on images, we just go down and find .jpg and put it in here but I want every file to be deleteable. So, I put in the asterisk. Find the shell folder, if you don’t have it then right click on the asterisk. Click new key and name it shell. Now, inside shell we’re going to right click on shell, create a new key and this is going to be what takes the periods for the context menu. So, we’re going to type move to recyble bin 2 then right click that and create another key inside it and this is going to be called command., just click that. And now, click the command key, and it’s going to hold the command that executes when you click move your recycle bin 2. Double click default.
Now, we need to type the directory to that batch file that we made, the one that move things. So, C:\WINDOWS in quotes, system\rb2bin.bat end quotes space start quote %1 end quote, so let’s going to run that batch file and then pass the parameter %1 once again. So now, it’s going to be passing it from the contacts menu of the file that you right click into the batch file which is going to move it through the recyclable bin folder that we made. Click OK for that. I wanted to create one more, just for simplicity, I’m going to put it on every file.
Transcription by:
Scribe4you Transcription Services