Tip of the day: Don’t clean out the Prefetch folder

At least once a week I run across some well-meaning soul who passes along a dubious tip designed to enhance the performance of Windows XP. According to these folks, you should clean out the Windows Prefetch folder regularly to improve your system’s performance. They’re wrong, because they don’t understand how this feature works. Even generally reliable sources like Fred Langa can get tripped up. Here’s what you need to know:

The Prefetch folder is not a cache – at least not in the sense that you normally think of when you use that term. This folder contains trace files and layout files that Windows uses in specific circumstances. Trace files describe the exact order in which segments of programs (executable files and dynamic link libraries, including those that make up Windows itself) load. Windows uses this information to launch Windows and Windows programs in the most efficient way possible. Layout files provide a list of files and directories in the order that they are accessed when you start your computer or run a program. The Windows XP Defrag program uses the layout information to arrange these files in a contiguous region of the hard drive. The “prefetching” doesn’t mean that code is being loaded unnecessarily; it means that code is being loaded in the right way, and only when it’s needed.

Cleaning out the Prefetch folder will not improve performance. I have proved this with a stopwatch repeatedly on multiple test systems, and documented the results in Windows XP Inside Out Second Edition. In fact, emptying the Prefetch folder will actually reduce performance, because Windows has to re-create the trace files the next time you run the program. Windows cleans out old files here automatically, and it uses the current information simply as instructions to help load programs more efficiently. If you delete a program, its layout and trace files go unused and are deleted within weeks.

This isn’t the first time I’ve written about the Prefetch folder. I have a detailed write-up on the subject here. Be sure to follow the links to the excellent article by Mark Russinovitch and David Solomon and scroll down to the section entitled Prefetch, which explains how this feature works in very clear detail.

The next time someone tells you that cleaning out the Prefetch folder is a performance-enhancing measure, tell them it just isn’t so.

Tip of the day: Get to the root of an Explorer window

Normally, when you open Windows Explorer, the window opens in your My Documents folder, with all other drives and folders visible in the Folders pane on the left. But if you just want to work with the files in a single folder (with all its subfolders), don’t forget the trick of creating a “rooted” Explorer window that contains only the specified folder and its subfolders. The secret is using the right switches after the explorer.exe command – in this case, /e to open an Exporer window (with folders visible) and /root to restrict the display of folders to only those that are below the folder you specify.

This shortcut, for instance:

%windir%\explorer.exe /e,/root,%userprofile%\My Documents\

shows a “rooted” view of the current user’s My Documents folder.

Try this one to open the Shared Documents folder:

%windir%\explorer.exe /e,/root,%allusersprofile%\Documents

Note in all cases that there is a space after the explorer.exe command but no space between switches and parameters.

Both of these shortcuts take advantage of environment variables. These systemwide shortcuts, identified by the percent signs on either side of the variable name, automatically point to the correct location, based on the current user profile. If you create one of these shortcuts and put it in the Desktop folder in the All Users profile, the shortcut will appear on the desktop of any user and will open properly for each logged-on user, without requiring any customization.

Tip of the day: Show or hide file name extensions

By default, Windows Explorer shows file extensions only for files that don’t have an association with a program. That makes it awkward if you want to edit a file’s extension. To make all file extensions visible for editing in Windows XP, open Windows Explorer and choose Tools, Folder Options. In the Folder Options dialog box, click the View tab and clear the checkbox to the left of the Hide extensions for known file types option. Click OK to close the dialog box and return to Windows Explorer. You can now see and edit all extensions.

Personally, I think that option is too drastic. I don’t want to run the risk of accidentally changing a file name extension for a Word document or an executable file. But I do find it handy to show extensions for certain types of file, such as text files with the .txt extension. And it’s relatively easy to make those extensions visible. Here’s how:

  1. Choose Tools, Folder Options.
  2. Click the File Types tab and select the entry associated with the extension you want to make visible — in this example, choose the TXT extension, which is associated with the Text Document file type.

    Folder_options

  3. Click the Advanced button to open the Edit File Type dialog box.
  4. Select the Always show extension checkbox.

    Edit_file_type

  5. Click OK to close the Edit File Type dialog box and then click OK to close the Folder Options dialog box.

Now return to Windows Explorer and you’ll see that the .txt extension is visible (and editable) in every Explorer window.

Tip of the day: Quick-pick files in Windows Explorer

When it’s time to clean out a crowded directory, learn these file selection shortcuts for maximum efficiency:

  • Hold down the Ctrl key and click to select or unselect files one at a time.
  • Select one file, then hold down the Shift key and click on another file to select all files between the two you selected.
  • Press Ctrl+A to select all files.

Here’s a shortcut that most people don’t know about. Say you have a folder that’s packed with files and you want to move or delete a large number of those files while keeping just a few. Select the handful of files you want to keep, and then choose Edit, Invert Selection. All the files in the folder except those you originally clicked on are selected and you can go ahead with your file operation.

Tip of the day: Tweak your windows settings

The best of all Windows customizing utilities is free – and it comes from Microsoft. Tweak UI lets you adjust dozens of tiny settings without having to mess around with the registry. Microsoft has released several versions of Tweak UI through the years. The most recent one is version 2.10, which requires Windows XP Service Pack 1 or later or Windows 2003. Download it from the PowerToys for Windows XP page. After installing this utility, you’ll find its icon in the Powertoys for Windows XP group on the All Programs menu.

Using Tweak UI, you can make all sorts of customizations to the Windows interface. In virtually every case, the effect is to add or toggle a registry setting. You could accomplish the same thing by editing the registry manually, but Tweak UI is quicker and eliminates the risk that you’ll inadvertently muck up your registry by mistyping something.

The screen shown here is one of my favorite tweaks. Click the Focus option under the General heading and select the Prevent applications from stealing focus checkbox. This eliminates a common annoyance that occurs when a program running in the background pops up a dialog box unexpectedly. If you’re typing away at full speed, you might accidentally dismiss the dialog box (or worse, select one of its options). This setting prevents these dialog boxes from appearing and flashes the taskbar button instead.

 Tweak_ui

You won’t find any documentation for Tweak UI online, nor is it officially supported by Microsoft. Carl Siechert, Craig Stinson, and I cover many Tweak UI settings in Windows XP Inside Out Second Edition (and the larger Deluxe Edition), including the automatic logon option (which changes the Winlogon key in the registry), the ability to create custom search shortcuts for use in Internet Explorer, and tweaks to change the five icons that appear in the Places bar at the left of common dialog boxes.

There’s lots of other good stuff in Tweak UI, too, like the ability to hide logon names from the Start menu, customize the list of drive icons in My Computer and the list of options in Control Panel, reassign navigation keys on your keyboard, and toggle AutoPlay settings for CDs and other removable drives.

Note: If you use any older version of Windows, including Windows 2000, get Tweak UI 1.33 from Microsoft’s Web site. (Do not use this version of Tweak UI with Windows XP or Windows 2003!) After unzipping the compressed file, you’ll end up with four files. To install Tweak UI, right-click the Tweakui.inf file and choose Install from the shortcut menu. This version of Tweak UI adds an icon to Control Panel and not to the Start menu.

Tip of the day: Four shortcuts that work in IE or Firefox

Here are four handy shortcuts that work identically in Internet Explorer and Firefox:

Save a favorite Web site

To add the current page to your list of Favorites (Internet Explorer) or bookmarks (Firefox), press Ctrl+D. You can move on to other pages, knowing that the location is saved for future reference. To recall the page, use the Favorites (IE) or Bookmarks (Firefox) menu.

Switch to full-screen view

Menus, toolbars, and other screen clutter can get in the way of some pages. Press F11 to turn on full-screen view, which hides everything except the toolbar and status bar. Press F11 again to restore the normal view. (You can also click the Restore icon in the top right corner of the screen to return to normal view.)

Change your home page

Ff_homeWhat’s your home page? If you don’t specify a preference, Microsoft sends you to its home portal, MSN. Firefox sends you to a custom Google page. But you can change your start page anytime. The slow way is to go through dialog boxes. Here’s the faster alternative: First, go to the Web site you want to use as your home page. Then click the icon in the Address bar, just to the left of the site’s URL, and drag that icon onto the Home button.

Move back to the last page

Your hands are on the keyboard and you want to quickly return to the previous page you were viewing in your browser window. Don’t move your hand to the mouse; instead, press the Backspace key, which has the same effect as the Back button on your browser’s toolbar.

Tip of the day: Give your taskbar twice as much room

This is one of my all-time favorite Windows tips, and it’s one of the first customizations I make on a new computer.

After you open more than three or four programs, you’ll have trouble seeing which file or program goes with each taskbar button. Here’s a great solution: increase the height of the taskbar to two lines (or even three), so you can see more buttons. Aim the mouse pointer at the top edge of the taskbar until it turns to a two-headed arrow, then drag up to create an extra row. If your screen resolution is 1024 X 768, you have room for at least two rows; at higher resolutions, you can comfortably use three rows.

After you finish this tweak, you’ll be able to see more taskbar buttons and their text labels. You’ll also find that the small icons in the Quick Launch bar and the system notification area (the “tray” at the right of the taskbar) stack up as well, giving you a lot more room in these areas, too. Even the clock changes appearance. With a two-line taskbar, you see today’s day and date along with the current time.

You may need to unlock the taskbar before you can make any changes. To do so, right-click the system clock and clear the check mark next to Lock the Taskbar). You may also need to “unhide” the Quick Launch bar (right-click any empty space on the taskbar, click the Toolbars menu, and select the Quick Launch option). Drag the right edge of the Quick Launch bar to make it wide enough to hold your icons. Remember to lock the taskbar after you finish.

A new assortment of daily tips starts next week

Beginning Monday, April 4, you’ll find a new daily tip feature on this site. I’ve already prepared the first week’s worth and set them up to be served automatically every weekday, first thing in the morning. Yes, I know there are other Windows tips sites out there. My goal with this one is to avoid rehashing the same old stuff and to come up with advice that’s fresh and different, whether you’re a novice or a jaded PC user with more than a decade’s experience, like me.

I plan to set up a separate RSS feed for this collection. When it’s ready, I’ll post the URL here. I also welcome suggestions. If you’ve got an idea, feel free to post it in the comments here.

What inspired me to start this up now? Last week I had a chance to review the archives of this site, and I cringed when I read through the collection of Windows tips that I had saved from another Web site. They were created way back in 2000 and 2001, and with a few exceptions they haven’t been updated since then. A few are still useful, but many are relevant only to users of Windows 95/98/Me. I’ve removed the links to that tip collection from my archives. I’ll be deleting the pages themselves shortly and replacing them with a pointer to the new collection.

Tune up your screen fonts

Last October, the Microsoft Typography group released a ClearType Tuner PowerToy. Don’t assume that this is just for notebooks. Tweaking these settings in Windows XP really can make your screen more readable. There’s a downloadable version, or you can use the online ClearType Tuner (because it uses an ActiveX control, the online version works only in Internet Explorer).

To learn more about ClearType, visit this page, which has a readable FAQ and lots of useful technical details.

(Thanks to Microsoft’s Michael Kaplan for pointing this out. If you’re a font geek, you should be reading his blog!)

How to troubleshoot the Blue Screen of Death

Update: If you’re puzzled because you’re getting STOP errors (the Blue Screen of Death) and they scroll off your screen before you can read the details, here’s the solution: Get details about the Blue Screen of Death.

Trying to figure out what’s causing a Windows STOP error (more commonly known as the Blue Screen of Death, or BSOD) can be a challenge. One likely candidate is bad hardware; if the error messages are random and the shutdowns appear unpredictably, you should suspect a faulty power supply or bad RAM.

Another common BSOD cause is a faulty device driver. Typically, you should be suspicious of any installed drivers that are not digitally signed, especially if they were written for an earlier version of Windows.

Windows XP includes a powerful troubleshooting tool called Driver Verifier (Verifier.exe). It’s a terrific way to identify flawed device drivers. It’s also a surefire way to screw up your system if you use it incorrectly. Read on for the details and important cautions.

Continue reading “How to troubleshoot the Blue Screen of Death”