Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Get the Windows XP you really want with these 12 tips for mastering
the operating system's inner workings.
Here's the quick version: Click Start, Run, type regedit, and press
<Enter> to open the Registry Editor. Then choose My Computer in the
folder pane on the left, click File, Export, give the file a name, and select
a location to store it (preferably on a CD-RW or other type of removable
media). The resulting text file may be huge, and restoring your Registry
from it may take a while. If your computer is generally behaving itself,
you may be protected well enough by the Registry backup that Windows
creates automatically when you make a new System Restore point.
In this story you'll also learn about some terrific third-party Registry
tools, and see a list of our favorite Registry resources on the Web.
A simple Registry tweak can give your Start menu (and its submenus)
more oomph. Open the Registry Editor as described above, and navigate
to and select HKEY_CURRENT_USER\Control Panel\Desktop (the last
word may appear as 'desktop'). Double-click the MenuShowDelay icon on
the right, and change 'Value data' from its default of 400 (milliseconds)
to something speedier, like 0. Alternatively, you can slow the menu down
to 4000 milliseconds (4 seconds) if the menu appears too quickly to suit
you. (Windows may be too fast at something--that's a first.) When you
have finished, press <Enter>.
We've all seen it: You try to exit a program (or Windows itself), and you
end up waiting for one or more apps to shut off. After a while--a long
while in some cases--Windows gives up waiting too, and displays the End
Program dialog box so you can force the programs to close.
Patience is a virtue, but if Windows is taking too long to shut down
recalcitrant programs, you can tell it to show the End Program option
sooner. In fact, you can make Windows close the hung application without
bothering you with a dialog box at all. Keep in mind, however, that if you
choose the promptless option, you may damage your system settings by
squashing a hung Windows process too quickly. (There's a middle road:
You can retain the prompt and use a shorter timeout interval, since the
dialog box always gives you the option of waiting longer.)
Next, double-click the HungAppTimeout icon in the same pane, and edit
the 'Value data' field to reflect the time (in milliseconds) you are willing
to wait for an unresponsive application (see FIGURE 1). The default
setting is '5000', or 5 seconds. To reset the wait time for a program that
is slow to shut down when Windows exits, double-click the
WaitToKillAppTimeout icon in the same Registry pane, change the default
of '20000' (milliseconds, or 20 seconds) to the maximum wait time of
your choice, and press <Enter>.
Applications aren't the only things that may keep you waiting for
Windows to shut down. The operating system's many running processes
(also known as "services") have their own timetable for shutting down. To
designate a maximum wait time before Windows ends (or prompts you to
end) services at shutdown, open the Registry Editor, and navigate to and
select HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control.
Double-click the WaitToKillServiceTimeout icon in the right pane. Adjust
its 'Value data' (also 20000 milliseconds, or 20 seconds, by default) to
the wait time of your choice, and press <Enter>. Note: Your new value
may not stick, since some services automatically increase this number to
build in more time to clean up their act.
To test the effect, first minimize the Registry Editor (and any other
open window), right-click the desktop, choose Properties, and click OK or
Apply to refresh the wallpaper placement. Repeat these steps as needed
until the wallpaper is positioned correctly (see FIGURE 2). The settings
work whether you've set your wallpaper to be centered, tiled, or
stretched.
When you search for a file in Windows (choose Start, Search, For Files
or Folders, or press <F3> in any Explorer or folder window to open the
search pane), Windows searches only for file types it recognizes. Files
that aren't listed in the 'Registered file types' list are ignored (to view
this list, open Explorer, choose Tools, Folder Options, and click the File
Types tab). So while 'Read_Me.xyz' may be a perfectly good file name to
you, Windows pays it no mind because of the unrecognized '.xyz' file
extension. Fortunately, a simple edit of the Registry will make Windows
search for every file, regardless of its extension. Open the Registry
Editor as described above, and then navigate to and select
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Content
Index. Double-click the FilterFilesWithUnknownExtensions icon in the
right pane, change the 0 in the 'Value data' box to 1, and press <Enter>.
Bonus tip: To ensure that Windows XP searches for every possible file,
select All Files and Folders under 'Type of file' in the Search Companion
pane. (If you don't see this option, click More Advanced Options.) Check
Search system folders, Search hidden files and folders, and Search
subfolders (as desired). In Windows 2000, click Search Options, check
Type, and make sure that (All Files and Folders) is selected in the
resulting drop-down menu. Check Advanced Options, and make sure
Search Subfolders is checked. Finally, to ensure that Windows 2000
finds system and hidden files, choose Tools, Folder Options and click the
View tab. In the 'Advanced settings' list, select Show hidden files and
folders. Uncheck Hide protected operating system files (Recommended),
click Yes to acknowledge the warning, and finish by clicking OK.
If you edit certain Registry keys frequently in Windows 2000 and XP, you
can save yourself the trouble of digging through the hierarchy by adding
them to the Registry Editor's Favorites menu. Select the key in the
Registry Editor window, and choose Favorites, Add to Favorites. Type a
name for the key shortcut and click OK. The next time you need to jump
to that location, you simply open the Registry Editor and choose the entry
you just added from the Favorites menu.
If you frequently switch between two settings for the same Registry key
(such as the ones for showing or hiding your file extensions or system
files), you can save yourself more time by exporting each version of the
key to a Registry file and then creating a shortcut that loads it into the
Registry.
Navigate to the key whose setting you want to toggle. Choose File,
Export, make sure that Selected Branch is highlighted, specify a name
and location, and click the Save button. Next, find and right-click the .reg
file you just exported, and choose Edit to open the file in Notepad. Don't
touch the first line, the blank line after it, or the third line (the heading
in brackets), but look for the line that corresponds to the setting you
want to change. Keep that line, and delete all the remaining lines below
the bracketed heading so your file doesn't alter the other settings.
Choose File, Save. Now change the setting in question by editing the
setting's value in the file (for example, you could change a '1' to a 0 or a
'no' to a yes). Click File, Save As, and then give the file a different name
(be sure to add the extension .reg to the end of the name).
Next you'll need to make a shortcut that inserts the settings stored in
the file into the Registry. Right-click the desktop or in a folder and
choose New, Shortcut. In the field, type regedit /s, followed by a space
and the path to the first .reg file. Use quotation marks if the file's path
contains spaces or long names--for example, regedit /s "C:\My
Documents\reg1.reg" (see FIGURE 4). Now click Next, type a name for
your shortcut, and choose Finish. Repeat these steps for the second .reg
file.
Now whenever you want to switch to the other setting, all you have to do
is launch the shortcut you just made. To toggle back, launch the second
setting's shortcut. You can put these shortcuts on your Start menu or,
for one-click access, on your Quick Launch or other toolbar. To assign
keyboard shortcuts to each of the files, right-click the icons (one at a
time), choose Properties, type the desired keys in the 'Shortcut key' box
under the Shortcut tab, and click OK.
By default, Internet Explorer's title bar shows the name of the Web site
you're viewing, followed by "Microsoft Internet Explorer"--or in some
cases, your company's name or the name of the ISP that supplied the
browser. To change the repeating text in IE's title bar (or to get rid of it
altogether), navigate to and select
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main in
the Registry Editor, and double-click the Window Title icon in the right
pane. (If you don't see this icon, right-click in the pane, choose New,
String Value, type Window Title, and press <Enter>.) Type what you want
to see on IE's title bar, or type nothing to show only the site name. Note
that the hyphen that normally separates the site name from the page
title will remain. When you relaunch Internet Explorer, you will see the
change (see FIGURE 5).
Sending your Registry tweaks to others lets you give all the machines on a
network the same settings without having to use any of Windows'
advanced administrative tools, among other uses. One way to accomplish
this is simply to export one or more .reg files and, if necessary, edit them
in Notepad, as described in the previous tip. Then you could put the .reg
files on a common server, or e-mail them to the individuals who need the
settings. The recipients would double-click the .reg files after
downloading them from the server or detaching them from your e-mail (or
they could right-click them one by one and choose Merge), and then they
would click Yes when prompted to incorporate the settings, without
editing the Registry themselves.
When distributing .reg files in this manner, make sure the settings are
not unique to your computer. That is, Windows-related tweaks are a good
bet to transfer smoothly, but changes to the keys for specific hardware
and applications will work properly only if the same products are on the
receiving system. Be sure to instruct all the users who import your .reg
files to back up their own Registry before doing so.
Rework System Restore
January's "Gunk Busters" described how to reset the disk space Windows
reserves for its System Restore points (scroll to "Whip Disks Into
Shape"). But the truth is, the amount of space Windows uses for restore
points is a little more complicated than a single percentage value. The
Registry includes its own setting for the maximum disk space given to
System Restore, and Windows uses whichever amount is larger: the
percentage you specify via the System Properties dialog box, or the
Registry's maximum value. Any disk space you free up via System
Properties won't instantly be used by System Restore; it will be available
until a new restore point requires more space than the amount allotted via
the percentage value. The percentage and max values tell Windows only
when to stop making new restore points.
To lock in your System Restore allocation, open the Registry Editor and
navigate to HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows
NT\CurrentVersion\SystemRestore. Select the SystemRestore icon in
the left pane to see several icons appear in the right pane. Do not
experiment with just any of these icons! While you can safely change the
value of some of them, Microsoft warns that others should not be altered
under any circumstances. Fortunately, you can safely edit the values for
the DiskPercent and DSMax icons, which control System Restore's disk-
space allotments. To change the maximum amount of disk space System
Restore will use (providing it's larger than the percentage value), double-
click the DSMax icon. In the Edit DWORD Value dialog box, click Decimal
so you can see the specified number of megabytes in the 'Value data' box
(the default on most systems is '400'). Change this to the desired
amount, and click OK.
While you're there, you can also safely edit the DSMin value, which
specifies the minimum space System Restore needs to work at all.
Normally, if free space on your Windows drive gets too low, System
Restore shuts down and makes no restore points until you have at least
200MB of free space. Setting this value determines the amount of disk
space at which System Restore will wake up and attempt to start saving
restore points again. However, just because System Restore will try to do
so, it won't necessarily succeed if the available space is too small.
Unfortunately, we know of no method to determine how much space a
single restore point will require, so setting this amount too low could
render the feature useless. Still, you can fit a lot of system files in
100MB of disk space.
To change this value, double-click the DSMin icon, click Decimal, and
enter your desired amount of free disk space (in megabytes) in the 'Value
data' box (see FIGURE 6). Click OK.
Now you'll be prompted for a Key Name, which is the name the Registry
Editor will give to the folder icon for these settings. You can enter any
name you want, but using the same name as the account will help you track
whose settings you are editing. When you're done, press <Enter>.
When you've made your changes, select the key you added and choose
File, Unload Hive. Click Yes at the warning. You can open and edit more
than one account at a time, but be sure to unload the hive for each user
before attempting to log on to the user's account. Otherwise Windows
may have trouble loading the proper Registry settings for the account you
just worked on.
Registry Toolkit
A Smarter Fixer-Upper
The program scans your PC's Registry for the usual unusual suspects and
gives you the option to make a backup before cleaning out the gunk. While
there isn't an option for restoring the deleted items, the backup is a
simple .reg file; double-click it to bring back your deleted Registry keys.
CCleaner ventures way beyond Registry cleaning, however; the tool also
finds and clears all of your Windows temporary files, and it sweeps away
your browser or Start menu Run histories, cookies, and more. The
program also runs application uninstallers and deletes orphaned uninstall
entries. And it lets you select which types of files to cleanse and/or
shows you a list of the files that will be deleted, before the fact.
Registry backups are insurance against a PC's going splat, and they give
you protection from problems that may stem from alterations made to
your system's Registry when you installed or even used other software.
Such backups in Windows 2000 and XP are easy to create with ERUNT
(Emergency Recovery Utility NT). Just tell the tool where to put the
backup and whether to back up more than the current user's settings.
You can set the utility to create a backup each time you start
Windows, so you don't have to remember to do this chore yourself.
Every backup folder includes an equally simple restore program. Last
but not least, ERUNT comes with the NT Registry Optimizer, which
improves your system's performance by removing fragmented sections
that can develop as you install and uninstall applications over time. Both of
the programs are absolutely free.
If you'd Like to know about Registry changes that are happening behind
the scenes, Sysinternals' Regmon has the answers, in terrifying detail.
The free tool's main window identifies which Registry key has changed,
when it changed, the process (software) that changed it, and the text of
the change (among other things). Only advanced users will understand all
of the information Regmon provides, but others can set the filtering
options to limit the program's reports to information they understand or
need. For example, to monitor changes to the applications that start with
Windows, choose Options, Filter/Highlight. In the Include box, type
HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Ru
n;
HKEY_Local_Machine\SOFTWARE\Microsoft\Windows\CurrentVersion
\Run (these are the two most common locations where apps hide their
startup commands). Or in the tool's Exclude box, you can enter the paths
to keys whose changes you'd rather ignore (for example,
HKEY_Current_User\Software\Microsoft\MediaPlayer).
There's as much fiction floating around the Web about the Windows
Registry as there is fact. These are the sites we've found to offer the
most reliable information about the operating system's plumbing.
It's About all you need: About.com doesn't provide information just for
the generalist. You can also find a lot of Registry hacks and tips at this
venerable site. Its "Focus on Windows" section includes pages of Registry
tips. Check out its links to overviews, general guidance, and tip lists, and
see its links to specific Registry tweaks.