Hacking Windows XP: Hacking Windows Explorer (from extreme tech)
Hacking the Context Menu
We will start off by removing items from the context menus and will then move on to adding and customizing the components of the menus.
Caution: Before editing your registry, it would be wise to create a system restore point by using system restore. Doing so will provide an easy method to revert back to your original configuration before you make any changes—just in case you accidentally delete or modify something that hurts your computer.
Actually removing these programs from your context menus can be a little tricky since they can spread to different places in the registry. Also, the easy-to-use context menu editor used earlier to change the icon and default launch app for certain file types is not robust enough to allow the removal of entries from programs that take over all context menus such as Picozip. The only way to remove these types of entries is to edit the registry directly. If you want to remove an entry on a context menu that does not appear on every context menu and just appears on one or a few other file types, you can still use the easy-to-use editor. Because of that, I have provided you two different sets of steps depending on what you want to do. When you are ready, follow the steps below for the corresponding type of entry to remove it for good.
Removing Entries that appear in all Context Menus
- Start up the Registry Editor by clicking on the Start button and selecting Run. Then type regedit in the box and click OK.
- When the Registry Editor appears, expand the HKEY_CLASSES_ROOT folder. You will now see a list of every file type that is set up on your computer.
- If the entry that you want to remove from the context menu appears in all context menus such as the Picozip example above, you will have to expand the * folder.
- Now that you have the correct folder expanded, expand the Shellex and ContextMenuHandlers folders. Your registry path should look like HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers.
- Look through the list until you find the entry that you want to remove. Right-click on the folder of the entry and select delete. You will find that identifying some of the programs is easy. For example, Picozip is labeled Picozip. However, you may run into some items that are listed using their application ID number or a vague name. If that is the case, copy (Control + C) the application ID, which is formatted like this—{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}—to the clipboard. You may have to expand the folder to see the ID. Then, once you have the ID copied to the clipboard, press Control + F to bring up the Search box in regedit and paste the ID in the box. Next, just click Find and you should be able to find some other references to that same ID in your registry that also might give you some clues to what it is. If that does not work, try doing a search on Google to see if that turns up anything.
- Once you are finished removing all of the entries from your context menus, just close Registry Editor and you are finished. Your changes will be in effect immediately.
- Open up My Computer.
- Click on the Tools menu, select Folder Options, and click on the File Types tab.
- Scroll though the list of file types and select the extension that you would like to modify.
- Click the Advanced button to bring up the Edit File Type window. This is where you will see a list of all of the different entries that will show up in the context menu, shown here:
- Select the item that you want to remove and click Remove.
- Click OK and you are finished.
Figure 5-3
Adding Your own Items to the Context Menu
Adding an entry to a context menu is very simple. The most difficult part of solving my little puzzle was figuring out how to launch Outlook so it would automatically create a message and attach the desired file to it. After a few minutes on Google researching, I came across Outlook-Tips.net which is a great resource for just the information that I was looking for. According to outlooktips.net, I just had to launch Outlook with the /a switch and the name of the file. Once I had this information, I had all of the pieces of the puzzle and was ready to start putting it together. Perform the following steps to learn how to add your own item to any File Types context menu:
- First, open up My Computer.
- Click on the Tools menu bar item and select Folder Options.
- Click on the File Types tab to expose all of the different file types on your computer.
- Because I usually send Word documents, I scrolled down the list of file types and selected the .doc file extension. Pick any other file extension for which you would like to add an entry.
- Once you have the entry selected, click the Advanced button to bring up the Edit File type window.
- Click the New button to add an entry.
- In the Action box, type in the name that you want to appear on the menu. I typed in Send Attached to Message.
- In the Application Used to Perform Action box, you will want to specify the application and any switches that you will want to use for this new entry. Click on the Browse button to easily browse to an executable file. I navigated until I found OUTLOOK.EXE inside the OFFICE11 folder.
- When you click OK, the path to the executable file will fill the box. Now you will want to add any application flags at the end of the line. To tell Outlook to create a new message and attach a file to it, I had to add /a after the path followed by %L. The %L is a system variable that holds the name of the file that you are right-clicking on. When I was finished, my box looked like the following (including the quotes): "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /a "%L".
- When you are finished editing your new entry, click OK to save it.
You can do even more things with the context menus. If I wanted to, I could use the different switches that I found on the Outlook Tips Web site to make my entry send the file to a specific person instead of leaving the To field blank in Outlook. Once you know the %L variable, you can send the name of the file to any program, given that you know the correct switches with which to launch the program.
Modifying the Send To Menu
- Open up My Computer and browse to the C drive, or whatever drive you have Windows installed to.
- Browse through the Documents and Settings, your user name, and the Send To folders.
Tip: If you do not see any of the folders that are required in this section, you may have hidden files turned on. Because these folders are hidden by default, you will have to tell Windows to show all files. To this, refer to the section on working with hidden files towards the end of this chapter.
- When you are looking at C:\Documents and Settings\Username\SendTo, you will see all of the files that appear in the Send To menu. If you want to add an entry to the menu, just copy a shortcut to this folder.
- Let's say that you want to add your Digital Photos folder to your Send To menu. Just navigate to your Digital Photos folder and right-click on it and select Send To desktop. Then just cut and paste the shortcut that was created from your desktop into the SendTo folder.
- If you ever want to remove some items from the Send To menu, just delete them from the Send To folder.
Customizing Your Folders
Changing the folder icon and the folder picture are done within a folder properties menu. For the sake of demonstrating what you can do with these new features, create a new folder on one of your hard drives and call it Downloads. This can be a folder to which you can save all of your downloads so that they do not clutter up your desktop. Follow these steps to change the way this folder looks:
- Right-click on the new folder that you just created, or on any folder that you want to customize, and select Properties.
- Click on the Customize tab to reveal all of your customizing options.
- Depending on what view you are currently using, whether it be the Icons, Tiles or Thumbnails view, will determine what you can customize. First, customize the icon, since that is the most popular way to customize the look of the folder. To do that, click on the Change Icon button on the bottom of the window.
- Now you will be able to browse through the list of available system icons or you will be able to specify your own by clicking the Browse button. Personally, the system icons are good enough for this folder, so I would select one of the globe icons for the Downloads folder.
- Once you have selected the icon that you want to use, just click the OK button to return to the Customize screen. Then click Apply to see your changes.
- If you are using thumbnail view to view your icons, you can customize the folder by making an image appear on the front of the folder so that it can be used as a reminder of what is in the folder. To do that, just click the Choose Picture button on the Customize screen and specify a bitmap to be displayed on the file.
- Once you are finished selecting the image, click OK to save your changes. Then click Apply on the Customize screen to see your changes. Remember that you will only see your changes if you are using the Thumbnails view. The view can be changed to Thumbnails view by clicking on the View menu bar item.
Changing the Template of a Folder
To get started customizing the folders on your computer so that they can take advantage of the new features, you have to set the template of the folder so that Windows Explorer knows how to display the contents of the folder. This can be done by using the Customize tab in Folder Properties. Follow these steps to specify the template that should be used for a specific folder:
- Navigate to the folder that you want to modify, right-click it, and select Properties.
- Click the Customize tab.
- Select the template that you want to use by expanding the drop-down box, as shown in Figure 5-5. The default template that is used is the Documents template. Other template options include Pictures, Photo Album, Music, and Videos. There are actually a few different subsets of music as well, but it really does not matter which one you select since you will most likely be customizing the look further in the next section. The main purpose of changing the template is so that you will have a different set of features with which you can work and customize.
- Also, if you have a lot of folders within this folder with the same type of content, click the Also Apply This to All Subfolders checkbox so that your changes will be propagated to all subfolders as well.
Figure 5-5
Customizing the view folder
- The default view of Windows XP is the Tiles view, as shown in Figure 5-6. This view is basically exactly the same as the Icons view, but the icons that are displayed are just a little bigger.
- The Thumbnails view is one of the most useful new views of Windows XP, as shown in Figure 5-7:
- The Filmstrip view is another very useful view that makes it easy to browse through photos on your computer. It gives you the ability to see a large sample of the image as shown in Figure 5-8, so that you can see a more detailed preview without having to open up the file.
- The Details view is not exactly a new view, but it has been expanded to include many new fields that display useful file information such as ID3 tags and image data, such as dimensions and camera info.
Figure 5-6
Figure 5-7
Figure 5-8
- Start off by resizing the columns. To do so, just place the mouse on the vertical line that is displayed between the columns and click and hold the left mouse button while you drag the mouse back and fourth.
- Now, add some of the new columns that display information from the ID3 tags from the MP3 files. Just right-click on the column heading and select one of the many new options such as bit rate. You can even select more items to add from the bottom of the pop-up menu to see a list of even more items that you can add as shown in Figure 5-9. Repeat this step until you have added all of the new columns that you want.
- Most likely there will be some columns that you just don't need. To remove these columns from the Details view, just right-click on the column heading and select the item once again to uncheck it. This will instantly remove the column from the view.
- The last part of customizing the view is to set the order of the columns in a way that you like the best. To change the order of a column, just grab the column header and drag it around by holding down the left mouse button and moving the mouse.
Figure 5-9
Applying your Folder Settings to all Folders
To do this, you could change the settings of every folder, but there is a much easier way. Instead, just customize one folder on our computer using the sections above so that you can get it looking great, then follow the steps below to apply the same configuration to all of the other folders on your computer.
1. While the folder that you customize is still open, click on the Tools menu bar item and select Folder Options. 2. Next, click the View tab. 3. Click the Apply to All Folders button and click Yes on the confirmation screen. Also, keep in mind that when you do that, you will overwrite your configuration on all of the other folders on your computer. 4. Then just click OK to close the Folder Options window and you are finished. If for some reason you don't like what you did and want to restore all of the folders on your computer to the original look, just click the Reset All Folders button that was next to the Apply to All Folders button on the View tab in Folder Options.
Working with Hidden Files
Telling Explorer to show hidden files and folders is the only solution to this problem. Making Explorer show hidden files is just a matter of getting to the right place. Follow these steps to show all hidden files:
- Open up a copy of Explorer in My Computer by clicking on the icon on the Desktop or Start panel.
- Go to the Tools menu bar item and select Folder Options.
- Click on the View tab to see all of the different file display options when the window appears.
- Scroll down the list until you see the entries for Hidden Files and Folders. Select Show Hidden Files and Folders, as shown in Figure 5-10.
- When you are finished, just click OK to save your changed and exit the configuration window.
- Click on the Start button and select Run.
- Type in regedit in the box and click OK to start up the Editor.
- Once regedit appears, navigate through HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced.
- Right-click on ShowSuperHidden and select Modify.
- Change the value to 1 and click OK to save your changes.
Figure 5-10
Revealing the super hidden system files is not very difficult at all. You can uncheck the box on the list on the View tab of Folder Options, but where is the fun in that? Use the Registry Editor to turn this feature off:
Now you will be able to see all of the files on your computer, including the super hidden system files.
Disabling the Common Tasks Pane and Summing Up
Removing the Common Tasks pane is very easy using the folder options that can be accessed in any Explorer window. Follow these steps to remove the Common Tasks pane from your windows:
- Click on the Tools menu bar item from any open Explorer window and select Folder Options. If you do not have an open Explorer window, just open My Computer.
- On the General tab, just select Use Classic Folders under the Tasks settings on the top.
- Click OK to save your changes.
You have now removed the Common Tasks pane from all of your Explorer windows.
(if you like this post please visit extreme tech, the original article of this post. This post is just for my own reference as note.thanks)
Comments
Post a Comment