Copying and Moving Folders and Files

Windows XP offers two different techniques for moving files and folders from one place to another: dragging them, and using the Copy and Paste commands.

Whichever method you choose, you must start by showing Windows which icons you want to copy or move—by highlighting them.

Highlighting Icons

To highlight (that is, select) one icon, just click it once. But you don’t have to move, copy, or delete one icon at a time; you can select a number of icons in the same folder or disk window. You may want to employ this technique, for example, when moving a bunch of documents from one folder to another, or copying them onto a backup disk en masse.

Tip

It’s easiest to work with multiple icons in Details view (Section 3.2.1.2), where every icon appears in a single column.

To highlight multiple files in preparation for moving, copying, or deleting, use one of these techniques:

To highlight all the icons

To select all the icons in a window, press Ctrl+A (the keyboard equivalent of the EditSelect All command).

To highlight several icons

You can drag across file and folder names to highlight a group of consecutive icons. Start with your cursor above and to one side of the icons, then drag diagonally. As you drag, you create a temporary dotted-line rectangle. Any icon that falls within this rectangle darkens to indicate that it’s been selected.

Alternatively, click the first icon you want to highlight, and Shift-click the last file. All the files in between are automatically selected, along with the two icons you clicked. (These techniques work in any folder view: Details, Thumbnails, or whatever.)

Tip

If you include a particular icon in your diagonally dragged group by mistake, Ctrl-click it to remove it from the selected cluster.

To highlight only specific icons

Suppose you want to highlight only the first, third, and seventh icons in the list. Start by clicking icon No. 1; then Ctrl-click each of the others. (If you Ctrl-click a selected icon again, you deselect it. A good time to use this trick is when you highlight an icon by accident.)

Tip

The Ctrl key trick is especially handy if you want to select almost all the icons in a window. Press Ctrl+A to select everything in the folder, then Ctrl-click any unwanted subfolders to deselect them.

Copying by Dragging Icons

As you know, you can drag icons from one folder to another, from one drive to another, from a drive to a folder on another drive, and so on. (When you’ve selected several icons, drag any one of them and the others will go along for the ride.)

Here’s what happens when you drag icons in the usual way (using the left mouse button):

  • Dragging to another folder on the same disk moves the folder or file.

  • Dragging from one disk to another copies the folder or file.

  • Pressing the Ctrl key while dragging to another folder on the same disk copies the icon. (If you do so within a single window, Windows creates a duplicate of the file called “Copy of [filename].”)

  • Pressing Shift while dragging from one disk to another moves the folder or file (without leaving a copy behind).

  • Pressing Alt while dragging an icon creates a shortcut of it.

Tip

You can move or copy icons by dragging them either into an open window or directly onto a disk or folder icon.

The right-mouse-button trick

Think you’ll remember all of those possibilities every time you drag an icon? Probably not. Fortunately, you never have to. One of the most important tricks you can learn is to use the right mouse button as you drag. When you release the button, the menu shown in Figure 4-6 appears, letting you either copy or move the selected icons.

Thanks to this shortcut menu, right-dragging icons is much easier and safer than left-dragging when you want to move or copy something.

Figure 4-6. Thanks to this shortcut menu, right-dragging icons is much easier and safer than left-dragging when you want to move or copy something.

Tip

Press the Esc key to cancel a dragging operation at any time.

Dragging icons in Windows Explorer

You may find it easier to copy or move icons in Windows Explorer, since the two-pane display format makes it easier to see where your files are and where they’re going. (See Section 4.1.4 for a list of the ways to open the Explorer window.) Here’s how to do it:

  1. Make the destination folder visible by clicking the + buttons next to your folder names, expanding your folder “tree” as necessary.

    For example, to copy an icon into a certain folder, click the Local Disk (C:) icon to see its list of folders. If the destination is a folder within that folder, expand its parent folder as necessary.

  2. In the left pane, click the icon of the disk or folder that contains the icon you want to manipulate.

    Its contents appear in the right pane.

  3. Locate the icon you want to move in the right pane; drag it to the appropriate folder in the left pane (see Figure 4-7).

    The file Working Outline, located in the Notes to Self folder on the desktop, is being dragged to the folder named The Great Estonian Novel (in the My Documents folder). As the cursor passes each folder in the left pane, the folder’s name darkens to show that it’s ready to receive the drag-and-dropped goodies. Let go of the mouse button when it’s pointing to the correct folder or disk.

    Figure 4-7. The file Working Outline, located in the Notes to Self folder on the desktop, is being dragged to the folder named The Great Estonian Novel (in the My Documents folder). As the cursor passes each folder in the left pane, the folder’s name darkens to show that it’s ready to receive the drag-and-dropped goodies. Let go of the mouse button when it’s pointing to the correct folder or disk.

    Windows copies the icon.

Copying by Using Copy and Paste

Dragging icons to copy or move them feels good because it’s so direct; you actually see your arrow cursor pushing the icons into the new location.

But you also pay a price for this satisfying illusion. That is, you may have to spend a moment or two fiddling with your windows, or clicking buttons in the Explorer folder hierarchy, so that you have a clear “line of drag” between the icon to be moved and the destination folder.

Fortunately, there’s a better way: You can use the Cut, Copy, and Paste commands to move icons from one window into another. The routine goes like this:

  1. Highlight the icon or icons you want to move.

    You can use any of the tricks described on Section 4.3.1.

  2. Right-click one of the icons. Choose Cut or Copy from the shortcut menu.

    Alternatively, you can choose EditCut or EditCopy, using the menu bar at the top of the window. (Eventually, you may want to learn the keyboard shortcuts for these commands: Ctrl+C for Copy, Ctrl+X for Cut.)

    The Cut command makes the highlighted icons show up dimmed; you’ve now stashed them on the invisible Windows Clipboard. (They don’t actually disappear from their original nesting place until you paste them somewhere else.)

    The Copy command also places copies of the files on the Clipboard, but doesn’t disturb the originals.

  3. Right-click the window, folder icon, or disk icon where you want to put the icons. Choose Paste from the shortcut menu.

    Once again, you may prefer to use the appropriate menu bar option—EditPaste. Keyboard equivalent: Ctrl+V.

    Either way, you’ve successfully transferred the icons. If you pasted into an open window, you’ll see the icons appear there. If you pasted onto a closed folder or disk icon, you need to open the icon’s window to see the results. And if you pasted right back into the same window, you get a duplicate of the file called “Copy of [filename].”

Get Windows XP Home Edition: The Missing Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.