Tip of the day: Make a one-click shutdown shortcut

Windows XP includes a command called Shutdown that does much more than its name might suggest. Yes, you can use it to create a shortcut that you can then double-click to turn off your computer instantly. Just create a new shortcut and include this command in it, exactly as typed:

shutdown -s -t 00

The -s switch means “shut down” (you could use -r to shut down and restart). The -t switch defines a waiting time, measured in seconds.

You can also use the command to do other tasks, such as logging off the current user (use the -l switch), or restarting a remote computer on your network (with the -m switch followed by \computername) . Using the -i switch, you can show a graphical user interface (normally, this is a text-based command). You can include the shutdown command as the last line of a batch file or script to restart a computer after performing a maintenance task.

To see the full syntax for the Shutdown command, open a Command Prompt window (Start, Run, type cmd and click OK) and type the command shutdown without any additional switches or arguments.

Tip of the day: Customize the Places Bar in Office

Yesterday, I explained how to change the five icons that appear in the Places Bar in Windows common dialog boxes. If you use Microsoft Office, you can do a few extra tricks.

First things first: Although the Open and Save As dialog boxes in Office programs (Word, Excel, PowerPoint, and so on) look similar to those in other Windows programs, they actually come from a completely different DLL file. So when you customize the Windows common dialog boxes, the Office versions remain unchanged.

To tweak the Office versions, open any Office program (Word, for instance) and choose File, Open. Here are three ways you can change these dialog boxes:

  • To change the size of the icons from large to small, right-click anywhere in the Places Bar and choose Large Icons or Small Icons from the shortcut menu.
  • To add a new folder to the Places Bar, select its icon in the main window, then click the Tools menu at the top right corner of the dialog box and choose Add to “My Places.” To remove an icon you added, right-click the icon in the Places Bar and click Remove. (You can’t remove the standard icons – My Documents, My Recent Documents, etc.)
  • To change the order of icons shown in the Places Bar, right-click the icon you want to move and then click Move Up or Move Down on the shortcut menu. You might need to do this several times to get an icon into its proper position.

In Office dialog boxes, you can have as many icons as you want (unlike the Windows versions, which limit you to five icons, in large size only).

Tip of the day: Customize the Places Bar

In most Windows programs, when you choose Open or Save As from the File menu, you see a common dialog box that includes five icons in a vertical sidebar on the left side. The five choices are pretty logical, as you can see here:

Places_bar_xp

Click any of those links on the left, and you see the contents of that folder in the window on the right, so you can open a file stored there or save a new file in that location.

But what if you never use the My Recent Documents folder? Why not customize the choices in the Places Bar? You can.

To change the five choices in the standard Windows XP Places Bar, use the Tweak UI Powertoy for Windows XP. Click the plus sign to the left of the Common Dialogs category in the left and select the Places Bar option. You can hide the Places Bar completely, or you can customize the five standard places.

Places_bar_tweakui

Click Apply to see your changes and leave Tweak UI open. Click OK to save the changes and close Tweak UI. To remove your customizations, click Show default places.

In tomorrow’s tip, I’ll show you what you can do with the Places Bar in Microsoft Office programs.

Tip of the day: It’s OK to enable UPnP

On the Windows XP Inside Out forums, a visitor asked: Does anybody know if there are any problems with allowing exceptions in Windows firewall for uPnP?

UPnP is the Universal Plug and Play service. It’s useful and perfectly safe. There was a security problem with UPnP that was discovered several weeks after Windows XP was released, nearly four years ago. That problem was patched in December 2001, and since then there have been no reported security issues with UPnP.

In addition, Windows Firewall only allows traffic on the UPnP ports from your local subnet, not from the Internet at large.

Unfortunately, way back in 2001 several widely read security sites, including the FBI’s National Infrastructure Protection Center (NIPC), posted advisories that recommended disabling UPnP. (The FBI changed that advice within a few days after the Windows XP update was released.) One widely read site even created a tool that disables the UPnP service automatically; that tool is still available for download and I continue to see people advising that it be used. That’s a mistake. The information in those advisories is no longer accurate and that tool is no longer needed.

You should enable UPnP with confidence. It is used by routers and by media sharing devices and home automation products, to name just a few categories of hardware and software.

Tip of the day: Change your picture on the Welcome screen and Start menu

Look at the top of the Start menu in Windows XP. See the picture to the left of your user name? It was assigned by default when you set up your user account. (You won’t see a picture here if you use the Classic Start menu instead of the Windows XP-style Start menu or if you’re attached to a Windows domain.)

Start_menu_photo

That same picture appears on the Welcome screen, where you log on to your user account. You probably have a frog, or a rubber duck, or a palm tree or a cat as your picture. But did you know you can change this picture? Did you know you’re not stuck with the lame set of sample images that come with Windows XP? Here’s how to personalize the image attached to your logon.

To change the picture used for your account, click Start, and then click the picture at the top of the Start menu. (This shortcut opens the User Accounts Control Panel and is a good one to remember; if you wanted to change something else about your account, you could click the Back button to see other settings.)

User_acct_photo

Click Browse for more pictures and find an image file you’d like to attach to your account. When you click Open, Windows copies your image to the folder where it stores user photos: %allusersprofile%\Application Data\Microsoft\User Account Pictures. The original image remains intact and unchanged. The copy is resized so that it is 48 pixels wide or high, and saved in Bitmap format, using your user name as the file name. I recommend that you start with a square image; if you use a rectangular image, the width or height will be reduced to maintain the image proportions.

Tip of the day: Customize your System Restore settings

System Restore is one of the most important – and most misunderstood – features in Windows XP. Used properly, it can save you hours of painful reconfiguration if you inadvertently install a bad driver or program. If you don’t understand its inner workings, you’re at a serious disadvantage. Carl Siechert, Craig Stinson, and I spent a lot of time delving into this feature in Windows XP Inside Out, Second Edition and Windows XP Inside Out Deluxe, Second Edition. In Chapter 2, “Installing and Configuring Windows XP,” we explain how you can customize System Restore to match your preferences. In “Recovering After a Computer Crash” (Chapter 39 in the Deluxe Edition, Chapter 32 in the regular edition), we explain how this feature works and how to use it properly.

System Restore settings and preferences are stored in the registry. Most of the values found here can be adjusted safely and easily using the System Restore tab of the System Properties dialog box. By default, System Restore is configured to allow its files to occupy up to 12 percent of available disk space on every drive. On a 60 GB drive, that adds up to more than 7 GB of storage space. That’s excessive. To rein in space usage for a specific drive, open Control Panel, double-click the System icon (it’s in the Performance and Maintenance category if you’re set up to use the Category view of Control Panel), and click the System Restore tab.

From the list of available drives, click the drive letter that corresponds to the drive on which Windows is installed. (Normally, this is C:) Then click Settings to open the dialog box shown here.

Sys_restore_settings

Move the slider control to the left until you reach a size you’re happy with. A value of around 1 GB should be sufficient for most people.

A few settings, however, can only be adjusted by manually editing the values stored in the registry – specifically, in this key:

HKLM\SOFTWARE\Microsoft\WindowsNT\
CurrentVersion\SystemRestore

If you are an experienced Windows user and you’re comfortable working with the registry, you can change the interval at which restore points are automatically created. All the standard warnings apply here: Editing the registry is dangerous. You can screw up your system and even render it unable to start. If you do, you’re on your own. Just so we’re clear…

Normally, System Restore automatically creates restore points every 24 hours. To adjust this interval, change the value RPGlobalInterval from its default setting of 86,400 seconds (24 hours). Cut this figure in half, to 43,200, if you want to save restore points twice a day; triple it, to 259,200, if you want restore points created every three days.

By default, System Restore deletes restore points after 90 days. To adjust this interval, change the value RPLifeInterval from its default setting of 7,776,000 seconds (90 days). A value of 2,592,000 seconds (30 days) should be sufficient.

Tip of the day: Cope with uninstall problems

If a Windows program is giving you problems, one common troubleshooting tactic is to uninstall it, using the Add or Remove Programs option in Control Panel. What should you do if the pesky program isn’t in the list of installed programs? Although it sounds paradoxical, sometimes the best solution is to reinstall the program. After completing the program setup, check the Add or Remove Programs option again; you may discover that now you can uninstall it.

Tip of the day: Back up files by sending them to a CD

These days, virtually every PC has a writable CD drive. Your drive probably came with software that allows you to create audio CDs and perform specialized functions. If you use Windows XP, you don’t need third-party software to write files to a disk in your CD-R or CD-RW drive. Use this capability to perform simple backup tasks:

  1. Right-click a file or folder, or a selection of files or folders, that you want to copy to a CD.
  2. From the shortcut menu, choose Send To, CD Drive.
  3. Repeat these steps for all of the items that you want to copy.

When you’re ready to create your backup CD, insert a blank CD into the drive (or a CD-RW disk that you’re ready to erase and overwrite). Open your CD drive in My Computer and click Write these files to CD in the task pane, or choose File, Write these files to CD.

Write_to_cd

As an alternative to using the Send To command, you can drag files into the Windows Explorer folder for your CD drive. You can drop files on the CD drive icon, or on a shortcut to that icon. Or you can use the Copy and Paste commands. When you copy files and folders into the CD drive’s folder, by whatever means, Windows prepares them for transfer to a writable CD. The CD folder becomes, in effect, a staging area for the eventual CD burn. One word of caution: You’re limited to the contents of one CD (650-702 MB). If you put too many files in this temporary folder, you’ll get an error message when you try to burn a CD, and you’ll have to clear out some files before continuing.

Tip of the day: Delete a file permanently

When you delete a file, it hangs around longer than you think, and that can be bad news if your goal is to get rid of truly sensitive information.

When you press the Delete key, Windows normally moves the deleted file to the Recycle Bin. You no longer see the file in an Explorer window, but it’s still there and you can recover it with a quick visit to the Recycle Bin.

After you empty the Recycle Bin, is the file gone? Nope. Deleting a file actually gets rid of only the file’s directory entry; the data that was in that file remains intact until another file uses its space. To prevent your files from being viewed by someone with file-recovery tools, you need a file-wiping utility. There are plenty of so-called file shredding utilities designed to handle this task, but you can do simple deletions with a command-line utility that’s built into Windows XP Professional (it’s in Windows 2000 Professional as well, as long as you’ve installed Service Pack 2 or later). If you use Windows XP Home Edition, you’re out of luck

The primary function of the Cipher.exe command is to manage encrypted files, but it also does a great job of scrubbing disk areas clean. Used with the /w switch, it overwrites all the unused areas of a drive with zeros, then fills all unused bits with ones, and finally overwrites all unused areas with random numbers. After you’ve deleted all sensitive information and emptied the Recycle Bin, follow these steps to wipe the deleted data clean:

  1. Click Start, Run. In the Open box, type cmd and press Enter. This opens a Command Prompt window.
  2. At the command prompt, type cipher /w:directory, where directory is the name of a folder — any folder — on the drive you want to wipe.
    • To scrub the current drive clean, type cipher /w:. (a period is command-line shorthand for the current folder).
    • To wipe a different drive, include the drive letter in the command – (to wipe your E: drive, for example, type cipher /w:e:\).
  3. Press Enter to begin deleting and overwriting data. The command window displays the progress of the job.

Leave the Command Prompt window open while the Cipher utility performs its work. (You can do other tasks while it’s working.) When the job is complete, you can close the Command Prompt window.

Tip of the day: Listen to a podcast at warp speed

Windows Media Player has a well-hidden advanced playback control that allows you to vary the speed at which a media clip is played back. This feature, it turns out, is ideal for listening to broadcasts that emphasize the spoken word, such as podcasts and vlogs. This feature does much more than simply rewind or fast-forward a media clip; it performs time compression and expansion, speeding up or slowing down the pace of playback but maintaining audio and video fidelity—keeping a narrator or host’s voice from sounding like a cartoon character when the audio or video clip is played at faster than normal speed.

Use this feature to “speed read” an instructional video or a podcast, for example, viewing or listening to the full program in a fraction of its normal running time while still being able to understand the audio.

To adjust playback speed, click Now Playing in the Features taskbar and then choose View, Enhancements, Play Speed Settings. (If this option doesn’t seem to work, choose View, Enhancements, and then click to add a check mark to the left of Show Enhancements.) The main Play Speed Settings control, shown here, is a slider that you can drag along a wide range. Drag to the right to speed up playback, to the left to slow things down. (Choosing a negative number causes a video clip to play backwards.)

Play_speed_settings

You can also use two presets above the slider controls at the bottom of the Windows Media Player window. (The Fast Play control is shown here.)

Play_speed_persets

Clicking the Rewind and Fast Play controls once causes the player to work at half-speed and 1.4 times normal speed, respectively. Keep clicking to step through four presets. For podcasts, the first click on the Fast Play control will give best results. In my experiments, I was able to play back a 10-minute podcast in just over 7 minutes. The audio has a slightly clipped quality to it, but voices sound perfectly natural.

[Note: This tip is adapted from Windows XP Inside Out, Second Edition.]