Search the Catalog
Windows XP in a Nutshell

Windows XP in a Nutshell

By David A. Karp, Tim O'Reilly, Troy Mott
April 2002
0-596-00249-1, Order Number: 2491
634 pages, $29.95 US $46.95 CA

Chapter 4 (Excerpts)
Windows XP Applications and Tools

Activate Windows

\windows\system32\oobe\msoobe.exe

The copy protection scheme in Windows XP (see Figure 4-4).

To Open

Start Settings Activate Windows

Command Prompt \windows\system32\oobe\msoobe /A

Description

Product activation is a new and somewhat controversial feature in Windows XP. Intending to curb software piracy, Microsoft now requires that each installed copy of Windows XP be activated. This involves contacting Microsoft, either over the Internet or with a telephone call, to obtain a special key to unlock Windows. If Windows is not activated within a certain period, it will expire and refuse to load.

Figure 4-4. Once you've activated Windows XP, you probably won't ever need to again

 

The sequence of steps to install and activate Windows is as follows:

  1. During the installation of Windows, type the 25-character CD Key provided with the Windows XP installation CD. The CD Key distinguishes one end-user license of Windows from another.
  2. Windows then generates a 20-digit product ID based on the CD Key and the Windows version.
  3. You, the user, transmit the "Installation ID," comprised of the 20-digit product ID plus an 8-digit hardware ID, to Microsoft. The hardware ID, a unique number based on values obtained from hardware in your computer (see below), distinguishes one computer from another.
  4. Microsoft responds with a 42-digit Confirmation ID, which is fed into Windows to activate it.
  5. Since the confirmation ID is based upon the unique CD key and the unique hardware ID, it represents a single, unique system. If someone attempts to activate Windows with the same CD Key and a different hardware key (representing the same copy of Windows being installed on more than one computer), the copy protection will kick in and the product activation will fail.

Notes

See Also

"Fully Licensed WPA Paper" at http://www.licenturion.com/xp/

File Compare (fc)

\windows\system32\fc.exe

Compare the contents two files (or sets of files) line by line and display the differences between them.

To Open

Command Prompt fc

Usage

fc file1 file2 [/a] [/c] [/lbn] [/n] [/t] [/w] [/offline] [/nnn] [/l] fc /b filename1 filename2

Description

File Compare (fc.exe) compares the contents of two files (or more, using wildcards) and displays the differences (if any). If the files are identical, fc.exe will report FC: no differences encountered. If the files are different, fc.exe lists the differing lines. Here's an example of how fc.exe is used:

Start with an ordinary text file, say, Bill.txt. Open it in Notepad, change one line, and save it into a new filename, say, Marty.txt. Then open a command prompt window, make sure you're in the same directory as the two files, and type the following:

fc bill.txt marty.txt

The output will look something like this:

Comparing files Bill.txt and Marty.txt
***** Bill.txt
Way down Louisiana close to New Orleans
Way back up in the woods among the evergreens
There stood a log cabin made of earth and wood
***** Marty.txt
Way down Louisiana close to New Orleans
Way back up in the woods among the antihistamines
There stood a log cabin made of earth and wood
*****

For each line or sequence of lines that is found to differ in the two files, fc.exe prints out a pair of excerpts from each of the files. The first and last line in each excerpt are what the two files have in common and are included for context. The lines in between (only a single line in this example) show the differences. The report will include one pair of excerpts for each difference found; if there are three nonconsecutive differing lines, there will be six excerpts. Here are the options for Comp.exe:

file1, file2

/a

/c

/lbn

/n

/t

/w

/offline

/nnn

/l

/u

/b

Notes

File and Settings Transfer Wizard

\windows\system32\usmt\migwiz.exe

Helps you transfer files and settings from one computer to another.

To Open

Start Programs Accessories System Tools File and Settings Transfer Wizard

Command Prompt \windows\system32\usmt\migwiz

Description

The File and Settings Transfer Wizard is a step-by-step guide that walks you through the process of transferring your personal documents, contents of your Favorites folder, Internet Explorer and Outlook Express settings, Desktop and display preferences, dial-up connections, and other settings from one computer to another (see Figure 4-32). The wizard is intended to assist the migration of these files and settings from an "old" computer to a "new" computer, but could be used to duplicate a configuration across several computers just as easily, or even to assist you in upgrading your hard disk.

Figure 4-32. The File and Settings Transfer Wizard helps you migrate your personal documents and preferences to a new computer

 

The first question the wizard asks is whether the computer being used is the "new computer" (the machine to receive the files and settings) or the "old computer" (the machine on which the files and settings are currently stored). Although you can begin the process from either computer, it makes more sense to start off from the old computer (unless the old computer is not running Windows XP).

If you choose "Old Computer," the next step is a choice between the following:

Direct cable

Home or small office network

Floppy drive or other removable media

Other

If you choose "New Computer," the next step is a choice between the following:

I want to create a Wizard Disk

I already have a Wizard disk

I'll use the wizard from the Windows XP CD

I don't need the Wizard disk

Once you've chosen an option, follow the prompts on the screen to complete the process.

Notes

Ping

\windows\system32\ping.exe

Test the "reachability" of another computer on the network or across the Internet.

To Open

Command Prompt ping

Usage

ping target [-t] [-a] [-n count] [-l size] [-f] [-w timeout] [-r count] [-s count] [-j host_list | -k host_list] [-i ttl] [-v tos]

Description

The primary function of Ping is to see if another computer is "alive" and reachable. Ping works on local networks and across Internet connections. For example, type the following at a command prompt:

ping oreilly.com

and you'll get a report that looks something like this:

Pinging oreilly.com [209.204.146.22] with 32 bytes of data:
 
Reply from 209.204.146.22: bytes=32 time=78ms TTL=238
Reply from 209.204.146.22: bytes=32 time=31ms TTL=238
Reply from 209.204.146.22: bytes=32 time=15ms TTL=238
Reply from 209.204.146.22: bytes=32 time=78ms TTL=238
 
Ping statistics for 209.204.146.22:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 15ms, Maximum =  78ms, Average =  50ms

Here, Ping sent out four pings (the default), reported the time it took for them to return (in milliseconds), and then displayed various statistics about the session. Ping is especially useful if you're having trouble contacting a server and you want to see if the server is alive (running and accepting connections). If the server does not reply (meaning that it is down or the connection has been severed), you'll see Request timed out. Ping accepts the following options:

target

-t

-a

-n count

-l size

-f

-w timeout

-r count

-s count

-j host_list

-k host-list

-i ttl

-v tos

Notes

The name "ping" comes from submarine lingo, when sonar was used to detect nearby objects, such as ships and other submarines. Pulses of sound were sent through the water; those that returned indicated the existence of an object off which the pulses were reflected. ping.exe works very similarly, except it sends packets instead of sonic pulses.

See Also

"Tracert," "NSLookup"

Windows Media Player

\program files\windows media player\wmplayer.exe;
\windows\system32\mplay32.exe

Play back video and audio media files, such as .mpg movies, .mp3 songs, audio CD tracks, and .asf streaming media.

To Open

Start Programs Accessories Entertainment Windows Media Player

Double-click on any associated media file

Command Prompt wmplayer (version 8)

Command Prompt mplay32 (version 5)

Description

Windows Media Player is the default application used to open and play most of the types of video and audio media supported by Windows XP (see Figure 4-107). Although you can open Windows Media Player from the Start menu, it makes the most sense to simply double-click on a supported media file or click on a link in a web page to open that video or audio clip and play it.

Figure 4-107. Windows Media Player is used to play video and audio clips

 

Windows XP actually comes with two different versions of the media player. The main application, Windows Media Player 8 (wmplayer.exe) is the default for all supported media file types, and is the one that is launched from the Start menu. Windows Media Player 5 (mplay32.exe) has a far more modest interface and even supports multiple instances (two or more videos playing at once), but uses the same media player subsystem, so its support for all the different media formats is identical to Windows Media Player 8. Try both to see which one you like better.

The rest of the Windows Media Player (either version) is fairly straightforward, with the standard VCR-like controls (e.g., Play, Stop, etc.).

Windows Media Player 8 supports several additional "gee whiz" features, such as visualizations, which are graphical displays that react to audio. In addition to the visualization plug-ins.com with Windows Media Player 8, you can download additional plug-ins for all sorts of visual effects. Also supported are "skins," which are used to make Windows Media Player look more exotic or interesting. Like visualizations, additional skins can be downloaded and installed (see Figure 4-108).

Figure 4-108. Lots of "skins" help you dress up the Windows Media Player window

 

The Radio Tuner in Windows Media Player 8 allows you to listen to radio broadcasts over the Web. Although no special radio hardware is required, a fast Internet connection certainly helps.

CD burning

Windows XP is the first version of Windows to include support for CD writers built-into the operating system (or more specifically, into Windows Media Player and Windows Explorer). The interface is a little awkward, and it doesn't offer the flexibility of most third-party CD burning applications, but it works.

If you have a CD recorder, follow these steps:

  1. Open Explorer, right-click on the drive icon for your CD recorder, and select Properties.
  2. Choose the Recording tab and make sure the "Enable CD recording on this drive" option is turned on. Set any other options here as desired and click OK.
  3. Open the Windows Media Player and go to View Taskbar Media Library.
  4. In the tree on the left, navigate to Media Library Audio All Audio (if you're not already there).
  5. Drag-drop any .mp3 or .wav files into this window in the desired order. Songs can't be rearranged here, but they can be after the next step.
  6. When you're done, click the "Copy to CD or Device" button on the left (or go to Media Library Audio Copy to CD or Device) (see Figure 4-109).
  7. Figure 4-109. Use Windows Media Player's built-in support for CD writers to burn your own music CDs

     

  8. The songs to be written to the CD are shown on the left, and the songs already on the CD (if any) are shown on the right. The songs in the playlist can be reorganized by right-clicking and selecting Move Up or Move Down.
  9. When you're ready, click the Copy Music button in the upper right. Any .mp3 files are temporarily converted to .wav format, and then all tracks are written to the CD.

This procedure will write audio CDs that can be played by nearly all CD players (with the exception of some older DVD drives). See "Windows Explorer," earlier in this chapter, for details on making data CDs.

Notes

Windows Movie Maker

\program files\movie maker\moviemk.exe

Capture, edit, and convert video clips.

To Open

Start Programs Accessories Windows Movie Maker

Command Prompt moviemk

Description

A new feature in Windows XP, the Windows Movie Maker allows you to edit and convert video clips, and if you have video capture hardware or a digital video camera, you can even create your own video clips (see Figure 4-111). Windows Movie Maker (and most video editing software) can be quite complex, so we will only include an introduction here.

Figure 4-111. The new Windows Movie Maker lets you edit video clips

 

Video editors don't work like most other applications. Instead of opening files, making changes to them, and then saving them, a typical video editing session works something like this:

  1. Start a new project by going to File New Project.
  2. Add one or more existing video files to the project by going to File Import. Windows Movie Maker supports many different video formats (see Notes). If necessary, Windows Movie Maker may need to prepare the clips for editing, which may take several minutes.
  3. All imported videos are then shown in the Collections pane; click a video filename to display "clips," arbitrary divisions in the file intended to make it easier to work with (see Notes, below). Depending on the length of the video, it might be divided into one or dozens of clips .
  4. Next comes the fun part: editing consists of cutting apart your video and splicing other portions or even other videos together to make a single movie.

    The actual video project consists of clips inserted into the timeline (shown at the bottom of the window), not those simply listed in the Collections pane. The timeline is like a storyboard, showing what the final video output will look like in a long a linear display. To add a clip to the timeline, drag it from the Collections pane and drop it at the desired location.

  5. Using the magnify controls to the left of the timeline, you can zoom in for more precise work or zoom out to see more of the timeline at once.

    Above the magnify controls is the storyboard/timeline button: click it to switch between the default Storyboard view (where each clip is the same size) and the more sophisticated Timeline view (where clips are sized relative to their duration). I find the Timeline (the view with the numbers across the top) to be much more intuitive and easier to use, as it shows a more accurate view of the project and allows more precise control when splitting. You can also select the desired view with View Storyboard and Timeline.

  6. The video preview, shown in the upper right, allows you to view the video project as it will appear when you're done. Click the Play button, or simply drag your mouse across the timeline to view any portion of the video project.

    When you reach a point in your video when you'd like to cut out footage or insert additional footage, go to Clip Split (or press Ctrl+Shift+S) to break apart the current video clip into two discrete clips. Once you've split a clip, you can delete a segment by highlighting it and pressing Del, or drag-drop a segment of video from another part of the timeline (or even another video) from Collections into the timeline.

  7. Once you're happy with the video constructed in the timeline, go to File Save Project. Note that this only saves the project, it doesn't actually create the final video.
  8. Use File Save Movie to create a new video file based on your work in the timeline. No changes to any of the source videos are made. Saving a movie file can take a long time, so you probably will not want to take this step until you're happy with your editing. If you save your project (see the previous step), you can close Windows Movie Maker and then open it up again later and resume your work; it's not necessary to save the movie each time.

Notes

Back to: Sample Chapter Index

Back to: Windows XP in a Nutshell


oreilly.com Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies | Privacy Policy

© 2001, O'Reilly & Associates, Inc.
webmaster@oreilly.com