The Windows Explorer is one of the most used parts of Windows XP. Every time you go to My Computer and browse through files on your computer, you are using Explorer. Using the icons on the desktop, right-clicking on files and folders, copying and pasting files are all examples of using the features that the Explorer provides.
Many of the features that Windows Explorer provides can be easily customized to make Windows XP even better. This chapter will show you how you can change many of the features and how to take advantage of some of the new, lesser-known features. It will start off with showing you how you can customize the way you interact with files and then how you view your files. By the end of this chapter, you will have completely customized all of the ways that you use Explorer to browse through and create files on your computer.
Hacking File Associations Every time you click on a file, Windows looks up what the default program to open for the file is from the registry. Then, Windows loads that application and tells the app what file to open up. This is something that we encounter almost all the time when we are using our computer. Often, when you install many programs on your computer, programs start to compete over which is going to be the default program to open up a file.
This commonly occurs when you install various music applications on your computer. I used Winamp to place CDs and MP3s on My Computer almost all the time. But when Apple released iTunes for Windows, I switched to that right away because of the cool library. Once I installed iTunes on My Computer, it took over all of my music files. When ever I would insert a CD into my drive, iTunes would automatically load and start playing it. When I would click on a MP3 file on my hard drive, the same would occur.
What happened to My Computer when I installed iTunes is not always a bad thing. However, there are some situations when I wanted to use Winamp to play my MP3 files. One big reason for this is that when I click on an MP3 file and it plays in iTunes, it is automatically added to my library. When I am sorting through my collection of songs that I ripped from my old CD's, I don't always want to add all of the songs to my library in iTunes since there are usually just two or three clicks on a 14 track CD. One easy solution to this problem is to change the file association back to Winamp so that when I click on a file, it will be played in Winamp. Then if I like it, I can always add it to my library later within iTunes.
These next two sections will show you how you can customize the default launch application for all of the different file types on your computer, as well as how your file types look.
Changing the Default Launch App The information that Explorer looks up to find which program should be used to launch a specific file type is stored in the system registry under the HKEY_CLASSES_ROOT section. Using the Registry Editor, it is possible to browse to that key and find the file type that you want to change and edit some keys, but there is a much easier way in Windows XP to accomplish the same task.
Hidden away in Folder Options within any Explorer window resides a useful utility to change the default application easily without having to worry about application ID's and file association structure. Just follow the steps below to change any File Types default launch app:
- Open up My Computer by clicking on the desktop icon or on the icon in the Start panel.
- When you have My Computer displayed on your screen, click on the Tools menu bar item and select Folder Options.
- Once the Folder Options window appears, click on the File Types tab.
- Navigate through the list of file extensions until you find the extension of the file that you want to change the default app for. Since I want to change my MP3 player default launch app, I am going to select the MP3 file extension. When you find the file extension that you want to change, select it by clicking on it.
- Click the Change button once you have your extension selected, as shown in Figure 5-1. The Open With properties window will load, asking you what program to load it with. It will show a list of common programs that you can choose from but you are not limited to just those program. Click the Browse button to navigate to any executable file on your computer to specify exactly what program you want to use if it is not on the list.
- Once you have the application selected that you want to use, just click the OK button to save your changes. You are now finished with changing the launch app.
Figure 5-1
Your changes to file launch apps are activated immediately after you click OK to save your changes. Now you will no longer have to worry about applications taking control over your files.
Changing the Icon of any File Type So far, you have learned how you can change the icons of the desktop icons. Now let's see how you can change the default icon that is displayed for any file type on your computer. Changing the icons is actually very easy; the most difficult part of the process is trying to figure out which icon to use. Additionally, keep in mind that you can use high-resolution icons that you can download from the Web.
To start changing your icons, you are going to use the Folder Options feature you used in the last section. Follow these steps to begin:
- Open up Folder Options again by clicking on My Computer. When it launches, click on the Tools menu bar entry and select Folder Options.
- Inside Folder Options, click on the File Types tab to reveal the list of all of the different file extensions on your computer.
- Browse through the list and select the extension for which you want to change the icon.
- Once you have the entry selected, click the Advanced button.
- On the Edit File Type screen, click the Change Icon button, as shown in Figure 5-2.
- The Change Icon screen will show. Here, you will be shown various system icons from which you can choose. If you do not find any that you like, just click on the Browse button and select an icon that you downloaded on your computer.
- Once you find the perfect icon, click OK.
- Click OK again to save your changes.
You don't have to reboot after you make your changes, because you will see your changes immediately after you click OK to save them.
Figure 5-2
Hacking the Context Menu What is the context menu? This is the menu that pops up when you right-click on a file. Over the years, these menus have become more and more useful. However, with the extra entries in the context menu, they often become cluttered with options and features that you just don't need. These next few sections will shown you how you can get your menus back under control as well as how you can take advantage of the new features to make your own context menu entries.
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.
Removing items from the context menu
Over time, your context menus can become cluttered with program entries from old programs that you don't use anymore. Sometimes you may experience programs that take over all of your context menus. Compression apps such as Winzip or Picozip always end up adding program entries to all of the context menus. I have Picozip installed on My Computer and every time I right-click on any file or folder, I see five entries from Picozip giving me different compression options. This can be a convenient feature, but if you don't compress and extract zip files very often, then you might not need the added convenience. Instead you could remove these entries from your context menu, which will give your system a cleaner interface as well as a small performance boost if you have a lot of extra entries in your context menu.
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 This set of steps will show you how you can remove entries in the context menu that appear in all menus for all file types that were put there by programs such as Picozip.
- 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.
Removing entries that appear only under certain file types
If you want to remove an entry on a Context menu that appears on just one type of file or a few different types of files, this section will show you how to easily remove it using the context editor in Folder Options.
- 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:
Figure 5-3
- Select the item that you want to remove and click Remove.
- Click OK and you are finished.
If you ever want to revert back to your original context menus, you can just restore your computer to an earlier checkpoint. Or, if you didn't create a system restore checkpoint, you can just reinstall the app to take care of it.
Adding Your own Items to the Context Menu Now that you have removed all of the extra clutter from your context menus, why not add some useful entries to your menus? You can add a lot of cool things to your context menus that can enhance your experience with your computer. My favorite item to add to my context menus is a "Send Attached to Message" entry. This entry in my context menu grew out of a need to find a better way to email files. I send a lot of messages every day, often just for the purpose of sending a file. I thought to myself, wouldn't it be cool if I could just right-click on a file and select some option that would automatically open up Microsoft Outlook, create a new message, and attach the file? That would streamline the whole process by knocking out a few steps.
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 are now finished adding an entry to a specific File Types context menu. If you followed all of the previous steps to add the "Send Attached to message" entry, every time you right-click on a Word document, you will now see the new entry, as shown in Figure 5-4. If you want to add the same entry on other file types, just repeat the previous directions by selecting a different file type in step 4.
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.
Figure 5-4
Modifying the Send To Menu The Send To menu is one of features of my context menus that I use the most. The ability to right-click on any file and have a shortcut for it sent to the desktop is invaluable. All of the other features are very useful as well. How would you like to make it even more useful? It is very easy to add your own items to the Send To menu, such as folders that you can send files to. Do you have a folder that you store all of your music in? How about a folder that you store all of your digital photos in? Just follow the quick steps below to add anything that you want to your Send To context menu entry.
- 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.
It's that simple. You are now finished customizing your Send To menu. Now you will be able to fine-tune all of the different features of your context menus so that you can get the most out of your Windows XP experience.
Customizing Your Folders The folders of Windows XP can be customized in ways that never were possible before. You can easily change the icon of the folder as well as the way the folder behaves once you open it up. These next few sections will show you how you can take advantage of the great new folder features of XP.
Changing a folder icon and picture
Changing the icon that is displayed for a folder is one of the easiest ways to customize how it looks and to make it stand out from the rest of your folders. Windows XP also includes a new way to apply pictures to the front of your folders when you are using thumbnail view. This next section will show you how to can change the way your files and folders look as you browse through them by taking advantage of the new high-resolution icons.
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.
When you are finished changing the way your folder looks, just click the OK button to save your changes and exit the folder properties window.
Changing the Template of a Folder Windows XP has several different ways to display the contents of a folder. Specifically, XP has many new ways to view different types of data inside a folder. For example, if you have a folder filled with MP3 files, Windows can display new information such as the title of the song, artist, year, track #, bitrate, duration, and other data from the ID3 tags (special data that keeps track of the title of the songs, artist, album, etc.) that are stored within a MP3 file when displaying the file in Details view with the music template selected. Another example is the new Filmstrip and Thumbnails view that can be selected to easily browse through your photos on your computer.
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.
Figure 5-5
- 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.
You have now customized the template of the folder and are ready to customize the view.
Customizing the view folder Now that you have the a specific template selected for your folder, you will have a more advanced feature list to work with so that you can display a lot of useful information about the file in your folder. First, you need to be aware of the new views that you can use in Windows XP:
- 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.
Figure 5-6
- The Thumbnails view is one of the most useful new views of Windows XP, as shown in Figure 5-7:
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.
Figure 5-8
- 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.
The Details view can be customized like no other view can be. All of the columns that are displayed can be resized, removed, rearranged, and more can be added. This can all be accomplished by using some of the lesser-known tricks of the interface. To start off, customize a folder that contains a bunch of MP3 files. By now, you should have already changed the template for this folder to one of the music templates so that you can use the advanced music specific features. If you have not already done that, go back to the last section to find out how. When you are ready, follow these steps to customize all of the different parts of the detailed view:
- 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
If you want to customize the detailed view of a folder that contains other multimedia files such as videos or photos, just repeat the previous steps and you will see additional column features with which you will be able to customize your detailed view.
Applying your Folder Settings to all Folders When you first use Windows XP, all of the folders are configured to use the tiles view. Personally, I don't always like to use the tiles view for all of my folders. It takes up so much screen space and I usually end up scrolling though the long lists while trying to find the file that I want. Instead, I like to use the detailed view on all of the windows by default.
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 Just like every other Windows version, Windows XP likes to hide files. When you are interested in tweaking and customizing your computer, this hiding of files can become probematic, as many of the system files with which you want to work are often hidden. These next two sections will show you how to make Windows XP display all hidden and system files as well as the super hidden files.
Unhiding hidden files
When you are tweaking your computer, you often need to edit different configuration files for different applications. This can cause a problem since those configuration files are often hidden. The only way to edit them would be if you knew the exact file name and typed it in the Browse box manually. Otherwise, you would be out of luck.
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.
You should now see all of the hidden files on your computer that are hidden using the +h file attribute. However, you may notice that there still are some files that are not showing up. These are the system files. To show these files, continue on to the next section.
Figure 5-10
Revealing the super hidden filesMicrosoft has added many features to Windows XP to protect the critical files of the operating system. The system file checker, for instance, continually monitors the system files to ensure that no application will replace your system files with a version that Windows XP was not designed to work with. The new super hidden files feature allows Windows to protect itself even further by hiding some of its most critical files from the user. If they can't get to it, they can't hurt it, right?
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:
- 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.
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 Every time that you use Explorer, you are forced to view the new Common Tasks pane. The Common Tasks pane is the new panel that is displayed on the left side of the screen that provides you with links to various parts of the operating system as well as useful utilities. This new feature looks visually pleasing and seems to be a very nice and useful feature. However, that is not always the case. I do not think that I have ever used any link on my tasks pane or any of the other information that is shown on it. If you are like me and do not use your Common Tasks pane, why not remove it to recover some space that could be used to display more icons on your screen at once?
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.