BUY THIS BOOK

Safari Books Online

What is this?

Looking to Reprint this content?


Windows XP Hacks
Windows XP Hacks 100 Industrial-Strength Tips & Tools

By Preston Gralla

Cover | Table of Contents | Colophon


Table of Contents

Chapter 1: Startup and Shutdown
Possibly the most overlooked part of XP is the way people start up and shut down their systems. How much do you think about startup and shutdown? Probably not much. Press a button to start your PC, click on a few buttons to shut it down, and that's it.
In fact, there's a lot you can do to get more productive—and to have a little customization fun—when using startup and shutdown. You can create boot menus and choose from customized startup options; you can create your own bootscreen; you can perform automated tasks every time you shut down your PC; you can eliminate unnecessary programs and services from starting to increase the speed of your PC. In this chapter, you'll learn all that, plus other ways to master and customize system startup and shutdown.
Edit or create a startup menu that lets you choose which operating system to boot into in multiboot systems, or create a menu that lets you choose different startup options for your single operating system if you have only XP installed.
If you've installed another operating system (in addition to XP) on your system, your PC starts up with a multiboot menu, which allows you to choose which operating system you want to run. The menu stays live for 30 seconds, and a screen countdown tells you how long you have to make a choice from the menu. After the 30 seconds elapse, it boots into your default operating system, which is generally the last operating system you installed.
You can customize that multiboot menu and how your PC starts by editing the boot.ini file, a hidden system file, to control a variety of startup options, including how long to display the menu, which operating system should be the default, whether to use the XP splash screen when XP starts, and similar features. And as you'll see later in this hack, you can also use the file to create a startup menu that will allow you to choose from different versions of your operating system—for example, one that you'll use for tracking down startup problems, and another for starting in Safe Mode.
The boot.ini
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Hacks #1-7
Possibly the most overlooked part of XP is the way people start up and shut down their systems. How much do you think about startup and shutdown? Probably not much. Press a button to start your PC, click on a few buttons to shut it down, and that's it.
In fact, there's a lot you can do to get more productive—and to have a little customization fun—when using startup and shutdown. You can create boot menus and choose from customized startup options; you can create your own bootscreen; you can perform automated tasks every time you shut down your PC; you can eliminate unnecessary programs and services from starting to increase the speed of your PC. In this chapter, you'll learn all that, plus other ways to master and customize system startup and shutdown.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Customize Multiboot Startup Options
Edit or create a startup menu that lets you choose which operating system to boot into in multiboot systems, or create a menu that lets you choose different startup options for your single operating system if you have only XP installed.
If you've installed another operating system (in addition to XP) on your system, your PC starts up with a multiboot menu, which allows you to choose which operating system you want to run. The menu stays live for 30 seconds, and a screen countdown tells you how long you have to make a choice from the menu. After the 30 seconds elapse, it boots into your default operating system, which is generally the last operating system you installed.
You can customize that multiboot menu and how your PC starts by editing the boot.ini file, a hidden system file, to control a variety of startup options, including how long to display the menu, which operating system should be the default, whether to use the XP splash screen when XP starts, and similar features. And as you'll see later in this hack, you can also use the file to create a startup menu that will allow you to choose from different versions of your operating system—for example, one that you'll use for tracking down startup problems, and another for starting in Safe Mode.
The boot.ini file is a plain text file found in your root C:\ folder. You might not be able to see it, because it's a system file, and if you can see it, you might not be able to edit it, because it's a read-only file. To make it visible, launch Windows Explorer, choose View Tools Folder Options View and select the radio button "Show Hidden Files and Folders." To make it a file you can edit, right-click on it in Windows Explorer, choose Properties, uncheck the Read-Only box, and click OK.
To edit the file, open it with a text editor such as Notepad. Following is a typical boot.ini file for a PC that has two operating systems installed on it—Windows XP Home Edition and Windows 2000 Professional:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home 
Edition" /fastdetect
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Professional" /
fastdetect
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Change the Picture that Appears on the XP Startup Screen
You're not stuck with XP's default splash logo on the startup screen—use any picture or logo of your choosing.
One of the nice things about XP is how malleable it is. Don't like the way it looks? No problem—change it. Take my splash screen, please!
Many people, myself included, would prefer to see a more interesting splash screen (also called the startup screen) than the default gives you on start-up. You can change your splash screen to any of hundreds that have been created, or make one of your own—for example, with your picture or company logo on it.
To choose from already created splash screens, go to http://www.themexp.org and click on Boot Screens. You'll find over a thousand of them, organized by categories such as Sports, TV/Movies, and so on. Being a fan of Jack London's The Call of the Wild, I use a picture of huskies for my splash screen. You can see it pictured in Figure 1-2. Nice way to greet the new day, don't you think?
Figure 1-2: Every time I start up my PC, I can imagine myself in the wilds of Alaska
Once you've found the image you want to use as your splash screen, download it. It will be downloaded as a .zip file. I create a general folder for all my boot screen files, called C:\Bootscreens, and then for each bootscreen I download I create a new folder—in this instance, C:\Bootscreens\Wild.
It's possible that something will go wrong with your new boot screen, so before making the change, create a System Restore point by choosing Control Panel Performance and Maintenance System Restore and following the instructions. If something goes wrong, you can revert to that restore point.
Unzip the contents of the .zip file into the folder. There will be one or more files, including ReadMe files. The boot screen itself, however, will be named ntoskrnl.exe. If you have XP Service Pack 1 installed, you may have to use a different file, named ntoskrnlSP1.exe, that may also be in the downloaded .zip file. Check the documentation of the file you download to make sure. If you're not sure if you have Service Pack 1 installed, it's easy to find out. Right-click on My Computer, and choose Properties
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Speed Up Boot and Shutdown Times
Shorten the time it takes for your desktop to appear when you turn on your PC, and make XP shut down faster as well.
No matter how fast your PC boots, it's not fast enough. Here's a hack to help you get to your desktop more quickly after startup, and to let you walk away faster after shutdown.
The quickest way to speed up boot times is to use the free Microsoft utility BootVis.exe. Although it's intended primarily for developers, anyone can use it to analyze their boot times and see where there are slowdowns. More important, the tool will also automatically make system changes to speed up your boot time, so you don't need to go into a lengthy analysis of where your slowdowns are and how to solve them.
Depending on your system and how it's set up, you may see only a moderately faster startup time, or you may speed up boot time dramatically. I've seen reports of improvements ranging from a little over 3 seconds to more than 35 seconds. The improvements I found on my systems were moderate—7 seconds faster on one, and 10 seconds faster on another. Think of all the things you could accomplish with another 10 seconds in the day!
The BootVis utility traces boot time metrics and then displays the results in a variety of graphs showing total boot time, CPU usage, disk I/O, driver delays, and disk utilization. Download it from http://www.microsoft.com/hwdev/platform/performance/fastboot/BootVis.asp and extract it into its own folder. Go to the folder and double-click on BootVis.exe. To analyze how your system boots, choose Trace Next Boot. (Choose Trace Next Boot + Driver Delays if you want to trace delays caused by drivers as well as your normal boot sequences.) Tell the program how many times to reboot and run the test (the more times it runs, the more accurate the results, although the longer the test takes to run). Click OK, and your system will reboot. After you log on after the reboot, you'll see this message:
Please WAIT for Bootvis to launch!
Don't do anything yet; the program is working, even though it doesn't appear to be doing anything. After a while, you will see the screen shown in Figure 1-3. Soon after that the results appear, as shown in Figure 1-4.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Halt Startup Programs and Services
Increase your PC's performance and speed up startup times by shutting off applications and services that you don't need.
One of the best ways to speed up your PC without having to spend money for extra RAM is to stop unnecessary programs and services from running whenever you start your PC. When too many programs and services run automatically every time you start up your system, startup itself takes a long time, and too many programs and services running simultaneously can bog down your CPU and hog your memory.
Some programs, such as antivirus software, should run automatically at startup and always run on your computer. But many other programs, such as instant messenger software, serve no purpose by being run at startup. And while you need a variety of background services running on your PC in order for XP to function, there are many unnecessary services that run on startup. For example, on many systems, the Wireless Zero Configuration Service runs to automatically configure a WiFi (802.11) network card, even though no such card is present in the system.
Stopping programs from running at startup is a particularly daunting task, because there is no single place you can go to stop them all. Some run because they're put in the Startup folder, others because they're part of logon scripts, others because of Registry settings and so on. But with a little bit of perseverance, you should be able to stop them from running.

Section 1.5.1.1: Cleaning out the Startup folder

Start by cleaning out your Startup folder. Find it in C:\Documents and Settings\<User Name>\Start Menu\Programs\Startup, where <User Name> is your Windows logon name. Delete the shortcuts of any programs you don't want to run on startup. As with any shortcuts, when you delete them, you're only deleting the shortcut, not the program itself. (You can also clear out the startup items by going to Start Programs Startup and right-clicking on items you want to remove.) Next, clean out your Scheduled Tasks folder. Go to
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Create Multiple Startup Profiles with Advanced Startup Manager
If you need to start different programs on startup, depending on what you need to do on your PC, create different startup profiles with this startup utility.
With the hacks covered in this chapter, you can customize how XP starts up. But there's one thing these hacks won't be able to do for you—create different startup profiles. For that, you need downloadable software.
Let's say, for example, you have a laptop that you sometimes run attached to a keyboard, monitor, and an always-on Internet connection, and other times you travel with it, so it is not connected to the Internet. When you use it when you travel, you use it primarily in airplanes, airports, and other places where you typically aren't connected to the Internet. You also run a piece of monitoring software that will send a signal to a call center if your laptop is stolen. You don't need to run that software when you're not on the road.
Ideally, you would have one set of programs that run automatically at home and another set of programs that run when you're on the road. At home, you might want instant messenger software and file sharing software to load at startup; on the road, you don't want that software to load automatically, but you do want your monitoring software to load.
Advanced StartUp Manager—a piece of shareware from Ray's Lab (http://www.rayslab.com), shown in Figure 1-8—lets you create multiple startup profiles so that you can have separate profiles for your laptop at home and the road—or for any other purpose. It's free to try, but it costs $19.95 if you decide to keep it.
Figure 1-8: Create multiple startup profiles with Advanced Startup Manager
In addition to creating a profile for traveling and one for home, you may want to create other profiles. For example, when you want to play games, you'll want to start your system with a minimal number of services and programs running in the background, so you'll create a profile that disables a variety of services, such as the Indexing service, the Task Scheduler, and the Themes service that lets you apply themes to your PC. If you frequently need to troubleshoot your network, you'll want to create a network-troubleshooting profile that automatically starts networking analysis software, such as QCheck. [Hack #57].
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Miscellaneous Startup and Shutdown Hacks
A grab bag of ways to customize the way you start up and shut down your system.
There are many small ways that you can control the way you start up and shut down your PC. This grab bag of four hacks shows you the best of them.
Turning off or rebooting XP involves a several-step process: click the Start menu, choose Shut Down, and then select Shut Down or Restart. If you want, however, you can exit or reboot much more quickly, by creating a shortcut that enables one-click shutdowns. You can also use the shortcut to customize the shutdown or reboot—for example, by displaying a specific message or automatically shutting down any programs that are running.
First, create a shortcut on your desktop by right-clicking on the desktop, choosing New, and then choosing Shortcut. The Create Shortcut Wizard appears. In the box asking for the location of the shortcut, type shutdown. After you create the shortcut, double-clicking on it will shut down your PC.
But you can do much more with a shutdown shortcut than merely shut down your PC. You can add any combination of several switches to do extra duty, like this:
shutdown -r -t 01 -c "Rebooting your PC"
Double-clicking on that shortcut will reboot your PC after a one-second delay and display the message "Rebooting your PC." The shutdown command includes a variety of switches you can use to customize it. Table 1-3 lists all of them and describes their use.
I use this technique to create two shutdown shortcuts on my desktop—one for turning off my PC, and one for rebooting. Here are the ones I use:
shutdown -s -t 03 -c "See you later!"
shutdown -r -t 03 -c "You can't get rid of me that quickly!"
Table 1-3: Switches you can use with shutdown
Switch
What it does
-s
Shuts down the PC.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Control User Logins by Hacking the Registry
Make better use of the XP login screen.
If there is more than one user account on your system, or if you've set up XP to require logins, you'll have to log in to XP before you can begin to use it. But you needn't stay with the default XP login rules; you can use a single Registry key to customize how you log in. For example, you can display custom text before login, and you can remind anyone with an account on the PC to change their password a certain number of days prior to the password's expiration.
To control logon options, run the Registry Editor [Hack #68] and go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon subkey, which contains a variety of logon settings (as well as some settings not having to do directly with logons). Following are the most important values you can edit to customize logons.
DontDisplayLastUserName
This setting lets you control how the system logon dialog box is used. If this String value is present and set to 1, all users will have to enter both their username and password in order to log on. If the value is 0, the name of the last user to log on will be displayed in the system logon dialog box.
DefaultUserName
This String value contains the name of the last user who logged on. It will be displayed only if the DontDisplayLastUserName value is not present or is set to 0.
LegalNoticeCaption
This String value, used in concert with the LegalNoticeText value, displays a dialog box prior to logon that contains any text you want to display. (The text doesn't have to be a legal notice, but this value is often used for that purpose.) The box has a title and text. The LegalNoticeCaption value will be the dialog box's title.
LegalNoticeText
This String value, used in concert with LegalNoticeCaption, contains the text that you want to be displayed inside a dialog box displayed prior to logon.
PasswordExpiryWarning
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Chapter 2: The User Interface
The Windows XP makeover was the biggest change Microsoft made to the Windows interface since it moved from Windows 3.1 to Windows 95. Rounded-edge windows, large, cartoon-like icons, and a completely redesigned Control Panel are just a few of the most obvious changes. It's not merely the way XP looks that has been changed, but how it works as well. It's based on a more stable kernel and finally gets rid of its DOS-based heritage.
But let's face it: XP's interface isn't perfect. As shipped, its cartoonish user-friendliness may help newbies, but it can frustrate power users. XP's graphical user interface (GUI) need not be one-size-fits-all, though. Under the hood, there are countless changes you can make to the way it looks and functions. In this chapter, you'll learn how to hack your way to a better GUI—one that reflects your own preferences, not the market-driven designs of Microsoft engineers.
Want to bend XP's interface to your will without getting your hands into the Registry or having to excavate through menus three levels deep? Then get this supremely useful freebie from Microsoft and create your own customized version of XP.
There are countless ways to customize XP's interface, including Registry hacks and menus and options hidden four layers deep. But if you're the kind of person who lives in the express lane, juices up on double espressos, and wants to hack away at the interface fast, then you need TweakUI (Download it for free from Microsoft at http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp. It's part of a suite of free, unsupported utilities from Microsoft called XP PowerToys, but it's far and away the best one.) It lets you tweak not only the interface, as the title suggests, but also many other system settings, such as how Internet Explorer's search works, whether to automate your logon upon system startup, and whether to enable CD autoplay so that the CD immediately starts up whenever you pop it into your drive. In this hack, you'll learn how to use it and apply that knowledge to create a speedy, stripped-down version of XP. Figure 2-1 shows TweakUI in action, customizing the display of thumbnail pictures in Windows Explorer.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Hacks #8-20
The Windows XP makeover was the biggest change Microsoft made to the Windows interface since it moved from Windows 3.1 to Windows 95. Rounded-edge windows, large, cartoon-like icons, and a completely redesigned Control Panel are just a few of the most obvious changes. It's not merely the way XP looks that has been changed, but how it works as well. It's based on a more stable kernel and finally gets rid of its DOS-based heritage.
But let's face it: XP's interface isn't perfect. As shipped, its cartoonish user-friendliness may help newbies, but it can frustrate power users. XP's graphical user interface (GUI) need not be one-size-fits-all, though. Under the hood, there are countless changes you can make to the way it looks and functions. In this chapter, you'll learn how to hack your way to a better GUI—one that reflects your own preferences, not the market-driven designs of Microsoft engineers.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Customize the GUI with TweakUI
Want to bend XP's interface to your will without getting your hands into the Registry or having to excavate through menus three levels deep? Then get this supremely useful freebie from Microsoft and create your own customized version of XP.
There are countless ways to customize XP's interface, including Registry hacks and menus and options hidden four layers deep. But if you're the kind of person who lives in the express lane, juices up on double espressos, and wants to hack away at the interface fast, then you need TweakUI (Download it for free from Microsoft at http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp. It's part of a suite of free, unsupported utilities from Microsoft called XP PowerToys, but it's far and away the best one.) It lets you tweak not only the interface, as the title suggests, but also many other system settings, such as how Internet Explorer's search works, whether to automate your logon upon system startup, and whether to enable CD autoplay so that the CD immediately starts up whenever you pop it into your drive. In this hack, you'll learn how to use it and apply that knowledge to create a speedy, stripped-down version of XP. Figure 2-1 shows TweakUI in action, customizing the display of thumbnail pictures in Windows Explorer.
Figure 2-1: Customizing the size and quality of thumbnails in Windows Explorer
I don't have room to show you all the ways you can hack the user interface with TweakUI, but here are some of the highlights:
  • The General section lets you control XP's animated effects, fades, and shadowing. Also worthwhile in that section is "Show Windows version on desktop." Check the option and it displays, in the lower-right portion of your screen, your exact version of XP—for example, "Windows XP Home Edition Build 2600.xpsp2.021108-1929(Service Pack 1)," as shown in Figure 2-2. I find it useful for knowing whether I need to add XP Service Packs, or for providing the information to tech support if I have an operating system problem that needs to be solved. You'll have to log off or restart your PC before it will display your version.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Control the Control Panel
Whether you're a fan of the new Control Panel or not, there's a lot you can do to make it more palatable—like hiding applets you never use, re-categorizing the ones you do use, and displaying all applets in a simple-to-use cascading menu.
When I first started using XP, one of the things that annoyed me most was its new Control Panel. Yes, the big new icons for running applets are certainly pretty, but the Control Panel's several-layer organization forces you to click far too many times in order to get to the applet that you want. And its clutter of applets that I rarely if ever use make it even more difficult and confusing.
My first reaction was to click on the Switch to Classic View button, to do away with the new design, but the Classic View has its problems as well: its long, alphabetized list of thumbnails is just as difficult to navigate as the new Control Panel.
The solution? Start by cleaning up the Control Panel, hiding applets that you rarely if ever use. Note that when you hide the applets, you can still use them; you just won't see their icons in the Control Panel.
In this hack, you'll not only find out ways that you can control the Control Panel—you'll also see how you can apply that knowledge to create different customized Control Panels.
To hide unused applets using the Registry, run the Registry Editor [Hack #68] and go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\don't load.
The key, as its name implies, determines which Control Panel applet icons are not loaded into the Control Panel. You'll still be able to run those applets from the command line after you hide them (as explained later in this hack); you just won't be able to see their icons in the Control Panel.
To hide an applet, create a new String value whose name is the filename of the applet that you want to hide. For example, to hide the Mouse Control dialog box, the String value would be main.cpl. See Table 2-1 for a list of Control Panel applets and their filenames.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Hack the Start Menu and Taskbar
XP Professional's Group Policy Editor gives you instant access to changing more than three dozen interface settings. Here's how to use it to create your own personalized Start Menu and Taskbar.
XP Professional's Group Policy Editor does more than just customize the Control Panel [Hack #9]; it gives you control over many aspects of XP's interface as well—in particular, the Start Menu and Taskbar. In fact, it gives you quick access to over three dozen separate settings for them.
Run the Group Policy Editor by typing gpedit.msc at the Run prompt or command line. Go to User Configuration\Administrative Templates\Start Menu and Taskbar. As you can see in Figure 2-5, the right pane displays all the settings you can change. If you click on the Extended tab at the bottom of the screen, you'll be shown a description of the setting that you've highlighted, along with an explanation of each of the options. Settings you can customize include showing the My Pictures icon, the Run menu, and the My Music icon on the Start Menu; locking the Taskbar so that it can't be customized; and many others. To change a setting, double-click on it and choose the options from the menu it displays, as outlined in [Hack #9].
Figure 2-5: Customizing the Start Menu and Taskbar in the group policy editor
There's not room in this hack to go into detail about each of the settings you can change, so I'll tell you about some of my favorites. I've never been a big fan of My Documents, My Pictures, and My Music. In fact, I never use those folders, so there's no point having them on the Start Menu. The settings in the Group Policy Editor let you get rid of them.
If you share your PC with other people, the Group Policy Editor is a great way to make sure that no one can change the Start Menu and Taskbar except you. So when you have the Start Menu and Taskbar working the way you like, they'll stay that way until you want to change them. Enable "Prevent changes to Taskbar and Start Menu Settings," and no one will be able to change their settings except you. Select "Remove Drag-and-drop context menus on the Start Menu," and no one except you will be able to remove or reorder items on the Start Menu. You can even stop anyone else from shutting down Windows by selecting "Remove and prevent access to the Shut Down command." (Of course, they can still shut down your PC the old-fashioned way: using the power switch.)
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Clean Up the Most Frequently Used Programs List
Make this infrequently used tool useful. Ban programs from the Most Frequently Used Programs List, change the number of programs on the list, or do away with it altogether to make more room for the Pinned Programs List.
Windows keeps track of programs you use frequently and puts them on the Most Frequently Used Programs List, which appears on the new Windows XP-style Start Menu (not the Classic-style Start Menu) between the Pinned Items List at the top and the All Programs link at the bottom. The Most Frequently Used Programs List is a quick way to access programs you use often. But the rules for when programs appear on that list and disappear from the list are murky at best, and there appears to be no logic to what programs appear there.
There is some hidden logic, however. XP bans a variety of programs from the list. If any of the following words or phrases are included in the program's shortcut name, the program will be excluded from the list: Documentation, Help, Install, More Info, Readme, Read me, Read First, Setup, Support, What's New.
Additionally, the following executables are excluded from the list: Setup.exe, Install.exe, Isuninst.exe, Unwise.exe, Unwise32.exe, St5unst.exe, Rundll32.exe, Explorer.exe, Icwconn1.exe, Inoculan.exe, Mobsync.exe, Navwnt.exe, Realmon.exe, and Sndvol32.exe.
There may be other programs you'd like to ban from the list, not just those that XP bans by default. Just because you use a program a time or two doesn't mean that you want it in on the Start Menu's Most Frequently Used Programs List. You can ban programs from the list using a Registry hack.
Run the Registry Editor [Hack #68] and go to HKEY_CLASSES_ROOT\Applications. Underneath this key, you'll find a series of subkeys, each of which represents an application. The primary purpose of these subkeys, as you'll see later in this hack, is to determine whether the program appears on the Open With dialog box that appears whenever you try to open an unknown file type. But you can also add a value to any of the subkeys which will ban programs from appearing on the Most Frequently Used Programs List.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Rename and Change "Unchangeable" Desktop Icons and System Objects
To create the perfect XP interface, you want to be able to give every desktop icon and system object the name and icon of your choice. Here's how to do it—even to objects that appear to be unchangeable.
Interface hackers (myself included) are a details-oriented bunch. We want to be able to control every part of the interface so that it reflects our personality. That means being able to choose our own icons for desktop items and system objects, give new names to system objects, and create our own balloon tips—for example, adding a balloon tip to the Recycle Bin saying "Take Out the Trash!"
But it's not as simple as you might think. Microsoft has a way of protecting its own. For example, it won't let you change the text and balloon tips associated with a variety of system objects, such as the Recycle Bin, Outlook, Internet Explorer, My Computer, and My Network Places.
You can normally change both the name and the balloon text (text that appears when you hover your mouse over the icon) of all the icons on your desktop, but you can't change these. Normally, to change the name and balloon text of an icon, you first right-click on the icon and choose Properties. To change the name of the icon, you choose the General tab and, in the box at the top, type in the name that you want to appear beneath the icon.
Then, to change the balloon text, you click on the Shortcut tab and in the Comment box type in the text that you want to appear. When you're ready to make the change, click OK. The icon name and balloon text should now be changed.
But when you try to do this for system objects such as Outlook, Internet Explorer, My Computer, and Network Neighborhood, it won't work. The proper options don't appear when you right-click on them and choose Properties.
There are ways, however, to change them in any way that you want, so that you can create your own personalized XP interface.
The Registry is your best tool for personalizing XP. It will let you change both the text and balloon tip associated with system objects. First, you need to know the object's class ID (CLSID), which uniquely identifies each system object. Table 2-3 lists the CLSIDs for common desktop objects.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Remove "Unremovable" Desktop Icons
To create your own customized XP interface, you need to be able to remove certain desktop icons. A Registry hack lets you remove any you want, including those apparently protected by XP.
Creating the perfect, customized XP interface doesn't only mean changing icons; it also means removing them. For example, many power users look down their nose at America Online, and yet, on many systems, that icon can't be removed easily.
America Online isn't the only icon protected this way; many others are as well. Which desktop icons are protected on your system will depend on your exact version of XP (for example, SP-1) and the manufacturer of your PC. The Recycle Bin is protected on all versions, but the America Online icon is protected on some systems, and not on others.
To customize XP to your liking, you'll want to be able to delete these protected icons. To do so, you'll need a Registry hack. Run the Registry Editor [Hack #68] and go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace. Here's where you'll find various special desktop icons. They're not listed by name, but instead by CLSID—for example, {645FF040-5081-101B-9F08-00AA002F954E} for the Recycle Bin. Table 2-3 in [Hack #12] lists CLSIDs of common desktop objects, so use it to find the CLSID of the icon you want to delete.
To remove an icon from the desktop, simply delete the key of the icon—for example, {645FF040-5081-101B-9F08-00AA002F954E} for the Recycle Bin. Then exit the Registry, go to your Desktop, and press F5 to refresh the screen. The Recycle Bin icon should now be gone.
On some systems, the icons may not be deleted immediately. Instead, after making the Registry change, you might have to right-click on the icon and choose Delete.
Some CLSIDs in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace can be deleted from the desktop without having to go through this procedure, but when you try to delete them they may give you a special warning message. For example, when you try to delete Microsoft Outlook from the Desktop, you get the warning message "The Outlook Desktop icon provides special functionality and we recommend that you do not remove it." If you'd like, you can edit that message to display whatever you want. In the CLSID's subkey—for example,
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Create Your Own XP Themes and Find Thousands Online
Customize the way XP looks and sounds, and dress it up with themes from the best sites on the Internet.
Themes control just about every part of the way XP looks and sounds, including its background wallpaper, colors, icons, cursors, sounds, fonts, screen saver, and the visual style of its windows and buttons. By default, your computer uses the basic Windows XP theme, which some people refer to as Luna because it was called that during XP's development. You can apply countless themes to XP, though it only ships with two: the basic Windows XP theme and the Windows Classic theme—a more stolid-looking theme, based on older versions of Windows, that uses rectangular windows and solid colors.
To change between themes, right-click on the desktop and choose Properties Themes. Choose the theme you want to use from the drop-down list, as shown in Figure 2-9. Click on OK, and the theme will be applied.
Figure 2-9: Applying a new theme
Note that if you choose "More themes online..." from the drop-down list, you won't actually be able to get more themes online, so choosing that option is a bit of a bait-and-switch. When you choose it, you'll be sent to a web page suggesting that you buy Microsoft Plus! for Windows XP. There's no need to buy it if you're looking to use more themes, though. Instead, you can make your own and get thousands more online from non-Microsoft sites.
If you're like me (and most other people), you won't be happy with the basic themes that come with XP. What good is an operating system, after all, if you can't bend it, twist it, and make it your own?
There's no single, central place you can go to make themes in XP. Instead, you'll have to customize each part of XP individually and then roll it all up into a single theme. Once your system is using all the elements of your theme, save the theme with the following instructions.
Start off by right-clicking on the desktop, choosing Properties, and then customizing your desktop using the following tabs:
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Give XP a Makeover with WindowBlinds
Control freaks, rejoice. With the powerful WindowBlinds utility, you no longer need to suffer with plain, common GUI elements such as the standard toolbars and scrollbars. You can modify and skin Windows to your heart's content.
In the years immediately following World War II, Bill Levitt realized that GIs needed homes. He planned and built a community outside New York City that he called Levittown. There were two models of home in Levittown and there was very little distinction between them. Levittown was the first "cookie cutter" community and remains the epitome of that term.
The Windows XP user interface is a "cookie cutter" experience. Frequently, users don't bother to replace the Bliss (green field and blue sky) background, and it's even more rare for someone to change the Windows XP standard menu or colors. Fortunately, you don't have to settle for the same desktop as the guy in the next office. One way you can customize your Windows XP experience is to use themes [Hack #14]. An even better way is to use a software package called WindowBlinds to "skin" (customize many aspects together) the user interface.
WindowBlinds is created by a company called Stardock and can be downloaded from their web site at http://www.stardock.com. It is sold by itself (for $19.95) or as part of a larger package called Object Desktop (for $49.95). There is also a free trial available from their web site.
If you use a P2P client to download software, be warned that there is a common virus that spreads itself by pretending to be an installer for WindowBlinds. Make sure you've got the real thing. The virus is passed around only through Kazaa and other P2P apps. The smartest thing to do and the best way to avoid the virus is to pay for this software!
After you install WindowBlinds, you will not notice any immediate changes. Activate the software via Control Panel Display Properties Appearance tab.
WindowBlinds makes several changes to the Appearance settings, as shown in Figure 2-11. The Add button allows you to search for and add skins to the "Windows and buttons" popup and the Delete button removes skins from the popup. The small icon button to the right of the "Windows and buttons" drop-down box leads you the Skin Studio web site (discussed a little later in this hack).
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Hacking Your Way Through the Interface
Use Registry hacks to make a grab-bag of great interface changes.
Hidden in the mazes of the Registry are countless ways to hack XP's interface. Here are some of my favorites.
The System Tray, also called the Notification Area, is the small area on the far-right side of the Taskbar, in which utilities and programs that run in the background, such as antivirus software, show their icons.
I don't find it a particularly intelligent use of screen real estate, so I'd prefer not to see the icons there. To hide them, run the Registry Editor [Hack #68] and go to HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer. Among other things, this key controls the display of objects throughout XP. Create a new DWORD called NoTrayItemsDisplay. Assign it a value of 1. (A value of 0 will keep the icons displayed.) Exit the Registry and reboot.
While you're at the HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer key, you can also delete the My Recent Documents icon on the Start menu. Create a new DWORD called NoRecentDocsMenu. Assign it a value of 1. (A value of 0 will keep the icon displayed.) Exit the Registry and reboot.
You might like to display some icons in the notification area but hide others. If so, you can hide icons on a case-by-case basis. You'll do it by delving through menus, though, not by hacking the Registry. Right-click on the Taskbar and choose Properties Taskbar. The Taskbar and Start Menu Properties dialog box appears. This dialog box, as the name implies, lets you control how the Taskbar and Start Menu look and function.
In the Notification area of the dialog box, check the box next to "Hide inactive icons," then click Customize. The Customize Notifications dialog box appears, as shown in Figure 2-15.
Figure 2-15: Hiding inactive icons
Click on the program's listing in the Behavior column, and choose from the drop-down menu to hide the icon when the program is inactive, always hide it, or never hide it. Click OK twice. Your changes will take immediate effect.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Remove "Uninstallable" XP Utilities
Think you can't uninstall Windows Messenger, WordPad and similar components? Think again. This hack shows you how.
Windows has always had a problem with uninstalling software, and it's particularly poor at uninstalling its own utilities, such as WordPad or Windows Messenger. Uninstalling these utilities can free up hard disk space if your hard disk is starting to fill up. And if you never use Windows Messenger, you most likely will want to uninstall it, because the program frequently launches itself automatically even after you've shut it down repeatedly, kind of like Dracula returning from the dead. It won't bother you any longer if you uninstall it.
To remove XP utilities and components, you normally choose Control Panel Add or Remove Programs Add/Remove Windows Components to get to the Windows Component Wizard, shown in Figure 2-18. To uninstall a utility or component, just follow the wizard's instructions.
Figure 2-18: The Windows Component Wizard
Ah, but there's a catch. A number of Windows utilities and components—notably Windows Messenger and WordPad—don't show in the Windows Component Wizard, so there's no apparent way to uninstall them. But you can, in fact, remove these components. XP has a Setup Information file that controls what appears in the Windows Component Wizard. If you edit this file, you can force these components to appear in the Wizard, and you can then remove them as you would any others.
To start, use Notepad or another text editor to open the Setup Information file, sysoc.inf, which is generally found in the C:\WINDOWS\INF folder. For safety's sake, make a backup of the file before editing it, so you can revert to it if you need to. You should also set up a System Restore point before making the changes. To set up a System Restore point, choose Control Panel Performance and Maintenance System Restore and then follow the instructions.
C:\WINDOWS\INF is a hidden folder, so if you want to view its contents, you will have to enable hidden folders by going into Windows Explorer and choosing Tools
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Create Transparent Windows
Make any XP window transparent and control the amount of transparency for each.
One of the cooler new interface features of XP is the ability to use transparent or semitransparent windows, in which the background can show through the current window. But there's a problem with that feature: very few programs take advantage of transparency, and there is no way built into XP for you to make windows transparent. So, to a great extent, the feature is worthless.
However, a number of downloadable programs tap into that XP capability and let you make any window transparent. My favorite is Glass2K (http://www.chime.tv/products/glass2k.shtml), because it's small, it's simple, and above all, it's free. It doesn't muck around with your system by making Registry changes or installing .dlls. It's just run an executable file, and with it you can make any window transparent. When it's running, go to the window you want to make transparent, and press Ctrl-Shift and a number from 0 to 9. 9 makes the window the least transparent, 1 makes it the most transparent, and 0 sets it so that it's solid, with no transparency. You can also right-click on a window, and select the degree of transparency from the program's pop-up menu. The window will keep that degree of transparency as long as you run the program and keep the transparency setting. Figure 2-19 shows the results of making windows transparent with the program.
Figure 2-19: Making any windows transparent with Glass2K
Trans-XP is another downloadable that lets you make windows transparent. It's shareware, and is free to try, but costs $14.95 if you decide to keep it. It's available from http://www.totalidea.com.
The downloadable version limits you to having only three transparent windows.
Another similar program is Actual Transparent Windows. It's also shareware and is free to try, but it costs $19.95 if you decide to keep it. It's available from http://www.actualtools.com.
If you're looking for an all-in-one tool that lets you make countless interface tweaks, including making any window transparent, try Tweak-XP, from
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Make Your Own Cursors and Icons
Don't settle for the icons and cursors that Microsoft built for you. Roll your own with downloadable software.
If you're not happy with the cursors and icons that XP ships with, don't despair. You can easily make your own with Microangelo, from http://www.microangelo.us. It's shareware and free to try, but if you continue using it, you're supposed to pay $54.95. You can create animated icons or regular icons—in both the standard 32-pixel and large 48-pixel sizes—and a variety of cursors as well. Use paint-type tools and build your icons and cursors on a grid, as shown in Figure 2-20. A preview is available, so you can see the effects of what you do as you work.
Figure 2-20: Creating an icon with Microangelo
What I find most useful about the program is that you can import existing cursors, icons, or other graphics, edit them, and then save the edited version. I'm no great artist, so I find editing existing graphics much easier than creating ones from scratch. The fine art of pixel placement in tiny icon images can be trickier than expected.
For a big selection of cursors, get CursorXP Free from http://www.windowblinds.net, the same company that makes the interface-customizing program WindowBlinds [Hack #15]. CursorXP Free is free, as the name implies. Install it, and a new CursorXP tab is added to the Mouse Properties dialog box, shown in Figure 2-21.
Figure 2-21: Customizing cursors with CursorXP Free
The Mouse Properties dialog box lets you choose from a variety of new cursors that ship with the program. By clicking on the Options/Configure button at the bottom of the dialog box you can also customize how each cursor works and looks. (The button toggles between Options and Configure, depending on whether you click on the Configure button at the top of the dialog box.) You can also import cursors that you've created with Microangelo or another program.
If you want a more powerful version of the program that includes special effects—the ability to colorize cursors, add trail effects, and more—you can try CursorXP Plus from the same site. The Plus version costs $10 to register.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Windows XP to Windows 2000: Retro is Cool
Don't like those cute XP graphics? Here's how to make Windows XP look more like Windows 2000.
Sometimes, no matter how much you tweak, you still don't like what you see. After sampling the hacks in this chapter, I decided that I didn't care for the cartoon-like graphical look of Windows XP (see Figure 2-25).
Figure 2-25: Windows XP desktop
Since XP is so customizable, it only took a few seconds to make my start menu and desktop look like the old standby Windows 2000.
First, let's change that cluttered XP start menu (see Figure 2-26) to a classic Start menu.
Figure 2-26: Windows XP Start menu
Right click anywhere on the taskbar at the bottom of the screen and select Properties from the popup menu. Go to the top of the window and select the Start Menu tab. Click the button for Classic Start menu. While you're in this tab you also have the option of customizing the Classic Start menu. Choose Customize to add or remove programs from your start menu, enable options such as drag and drop, or display Favorites. Hit OK and your start menu will now look like the one shown in Figure 2-27, just like Windows 2000.
Figure 2-27: The lean and mean Classic Start menu running on Windows XP
Now that you've cleaned up the Start menu, it's time to change the look of your desktop. Though it's not a necessary step to making your desktop look like Windows 2000, your notification area (the lower right-hand corner near the clock) will be a lot neater if you go back to the Taskbar tab, and uncheck Hide inactive icons. Windows 2000 doesn't have the graphical features of XP, so hiding the icons before switching over is a good idea.
Right click anywhere on the desktop and choose Properties from the popup menu. Select the Themes tab and under Themes, scroll down to Windows Classic. Hit OK and your desktop will now look like the one shown in Figure 2-28.
Figure 2-28: Back to the past: Windows Classic theme running on Windows XP
Your desktop now has the icons, the window setup, the Start menu, and the general look and feel of Windows 2000.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Chapter 3: Windows Explorer
You use Windows Explorer every day, probably many times a day, without giving it much thought. You open it, view some files, delete others, drag a few around to different folders, and then you're back on your way.
But there's a lot of ways that Explorer can make your life easier. For example, you can use it to hide files by encrypting them, give yourself more hard disk space by compressing files, and easily find the files you want by using the indexing service and its query language. And there are ways to hack Explorer to make it much easier to use—for example, by customizing its right-click context menu. In this chapter, I'll show you how to do all that and more.
Longtime PC users and former Mac users alike are often shocked when they realize that there's no easy, built-in option to print a list of files in a folder. This hack creates a context-menu right-click option to create such a list, which you can then edit, copy, paste, and—most usefully—print.
How many times have you been browsing through directories in Windows Explorer and wished you could generate a text file or printout listing the files and folders? It seems like such a simple request that it's amazing the option isn't available. You don't believe me? Right-click on a folder and see for yourself if there is an option to list or print the structure. There isn't, but there is a workaround that doesn't require any third-party software. Here's how to create a context menu item [Hack #29] that, when clicked, generates a printable (and editable) text-file listing of the selected directory.
To create the entry in the context menu it's necessary to first create a batch file. A batch file is a text file that contains a sequence of commands for a computer operating system and uses the .bat extension. The format for the .bat file is:
dir /a /-p /o:gen >filelisting.txt
The name of the .txt file can be whatever you like. In this example, I've used filelisting.txt, but it could just as easily be filelist, listoffiles, namedfiles, or even Wally
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Hacks #21-32
You use Windows Explorer every day, probably many times a day, without giving it much thought. You open it, view some files, delete others, drag a few around to different folders, and then you're back on your way.
But there's a lot of ways that Explorer can make your life easier. For example, you can use it to hide files by encrypting them, give yourself more hard disk space by compressing files, and easily find the files you want by using the indexing service and its query language. And there are ways to hack Explorer to make it much easier to use—for example, by customizing its right-click context menu. In this chapter, I'll show you how to do all that and more.
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Generating Folder and File Listingsfor Printing or Editing
Longtime PC users and former Mac users alike are often shocked when they realize that there's no easy, built-in option to print a list of files in a folder. This hack creates a context-menu right-click option to create such a list, which you can then edit, copy, paste, and—most usefully—print.
How many times have you been browsing through directories in Windows Explorer and wished you could generate a text file or printout listing the files and folders? It seems like such a simple request that it's amazing the option isn't available. You don't believe me? Right-click on a folder and see for yourself if there is an option to list or print the structure. There isn't, but there is a workaround that doesn't require any third-party software. Here's how to create a context menu item [Hack #29] that, when clicked, generates a printable (and editable) text-file listing of the selected directory.
To create the entry in the context menu it's necessary to first create a batch file. A batch file is a text file that contains a sequence of commands for a computer operating system and uses the .bat extension. The format for the .bat file is:
dir /a /-p /o:gen >filelisting.txt
The name of the .txt file can be whatever you like. In this example, I've used filelisting.txt, but it could just as easily be filelist, listoffiles, namedfiles, or even Wally if you enjoy the bizarre in your filenaming schemes. Once you've decided on the filename, create the file in Notepad, as shown in Figure 3-1.
Figure 3-1: Creating a batch file in Notepad
Save the file in your WINDOWS folder as shown in Figure 3-2, making sure to use the .bat extension and not the default .txt extension. It's important to set "Save as type" to All Files and "Encoding:" to ANSI.
Figure 3-2: Saving file listing.bat
Now that we have the .bat file created, the next step is to make it functional and easily accessible by integrating it into the context menu that opens when a right click is executed. Open Windows Explorer and choose Tools
Additional content appearing in this section has been removed.
Purchase this book now or read it online at Safari to get the whole thing!
Control Windows Explorer with Command-Line Shortcuts
Create customized Explorer views from the command line, and save your favorite views in desktop shortcuts.
I rarely open Windows Explorer in its default view. Instead, I generally want to open it at a specific location, with a specific set of viewing features—for example, with the Folders bar in the left side on or off.
I launch Windows Explorer from the command line, along with a set of switches f