Chapter 21
Managing Files and Folders

Your computer's hard disk has enough space to store thousands of pictures, songs, and other files. Having lots of stuff on your computer can be a good thing, but only if you can find what you're looking for. Therefore, keeping files organized so you can find them easily is an important basic skill that every computer user needs to learn.

Chapter 20 discusses drives, folders, and files. It also tells you how to use Explorer to navigate your system and get to things you need. The chapter covers strategies for saving things in a way that prevents you from losing them.

This chapter picks up where that one left off. Here, we assume you've read and understood most of Chapter 20. Now you're ready to start reorganizing what you have. That requires that you know how to select, move, and copy files. You also discover other important techniques in this chapter, such as how to rename, delete, and un-delete files. These basic skills are important to acquire if you intend to use your computer for anything beyond basic e-mail and web browsing.

Selecting Icons

You often find that you want to perform an operation on many files. For example, say you want to copy a couple of dozen files to an external disk. You can do them one at a time, but that takes lots of time and effort. An easier method is to select all the icons you want to copy, and copy them all in one fell swoop.

You can select icons in many ways. The best way is usually the method that is easiest for you, or is most suitable for whatever you're trying to accomplish.

Thumbnails for pictures and videos are icons, as well. So all the techniques described in this chapter apply to thumbnails.

Selecting one icon

Selecting a single icon is easy. If you're using the double-click method to open documents or programs, click once on the icon you want to select. If you're using the single-click method to open icons, just point to the icon (rest the tip of the mouse pointer on the icon you want to select). The selected icon is highlighted to stand out from the others. The toolbar very likely changes to reflect things you can do with that selected icon. If the Details pane is open, it shows information about the selected icon, as illustrated in Figure 21.1.

Image described by caption and surrounding text.

Figure 21.1 A selected icon.

If you turned on the option to select icons using check boxes in Folder Options, you have to point to the icon first and then click its check box. The only thing unique about this method is that the selected icon's check box has a check mark, as in Figure 21.2.

Image described by caption and surrounding text.

Figure 21.2 A selected icon shows a check mark.

To turn on the option to use check boxes, select the View tab and choose Options. Select the View tab in the dialog box that opens. Then scroll down to and check Use Check Boxes to Select Items. Click OK. The check box doesn't show on an icon until you point to or click the icon.

Selecting all icons

If you want to select all the icons in a folder, use whichever of the following techniques is easiest for you:

  • Select the Home tab and click Select All.
  • Press Ctrl+A.

All the icons are selected.

Selecting a range of icons

You can easily select a range of icons using the mouse and keyboard. If the folder contains many icons, consider using the Layout buttons on the View tab (or the Ctrl key and your mouse wheel) to make the icons smaller. This way, you can see all the icons you want to select. If the items you want to select have something in common, consider sorting the icons so the ones you want to select are adjacent to one another.

To select multiple icons do one of the following:

  1. Select the first one by pointing or clicking.
  2. Hold down the Shift key and click the last one.

Both icons and all the icons in between are selected. The toolbar changes to show things you can do with all those icons. If the Details pane is open, it shows some information about the selected icons. The Size detail tells the combined size of all the selected icons. Figure 21.3 shows an example when you don't have any folders selected.

Screenshot of File Explorer window displaying on the details pane picture icons 1–12 highlighted. Folder labeled Camera Roll, picture icon 14, and icon labeled whiteback are not highlighted or selected.

Figure 21.3 A range of icons selected.

Selecting and unselecting one at a time

To select a single icon without unselecting others, Ctrl+click the icons you want to select (or unselect). Ctrl+click means hold down the Ctrl key as you click. For example, to unselect only the highlighted icon in Figure 21.3, Ctrl+click its icon. All the other icons remain selected.

If you're using the single-click method to open icons, you can Ctrl+click or Ctrl+point to select or unselect a single icon. The result of both methods is the same.

Here's another way to look at selecting icons. When you select an icon by pointing or clicking, only that one icon is selected. Any other selected icons are instantly deselected. But if you hold down the Ctrl key as you go, other selected icons remain unchanged, as shown in Figure 21.4. So, you can hold down the Ctrl key to select or unselect without disturbing other selected icons.

Similar to Figure 21.3 but picture icon 7 is not highlighted or unselected.

Figure 21.4 Select multiple icons.

Of course, you can use the Ctrl key to select multiple non-adjacent icons.

Selecting with a touchscreen

Windows 10 is designed for mobile devices such as mobile phones and tablets. Another way to select onscreen files is to touch the files using your finger (as long as your screen is a touchscreen). To select multiple files with touch, touch each file you want to select. To unselect a file in a group of selected ones, simply re-touch that file.

A handful of touch-based gestures are available with Windows 10, along with mouse-based alternatives for use on non-touch devices (or for when you have a mouse connected to a touch device). Chapter 2 discusses these gestures in more detail. In addition, see Appendix D for a list of common touch gestures.

Selecting with the keyboard

You can select icons without using the mouse at all. First, make sure the keyboard focus is in Explorer's main contents pane. If you aren't sure, press the arrow keys on the keyboard until you notice the selection box moving from icon to icon within the main content pane. Then move the focus to the first icon you want to select using the navigation keys (←, →, ↓, ↑, Home, End, PgUp, and PgDn).

To select multiple adjacent icons, hold down the Shift key as you move through icons using the navigation keys. All icons through which you pass are selected. To select multiple non-adjacent icons, hold down the Ctrl key as you move from icon to icon with the navigation keys. When you get to an icon you want to select, tap the Spacebar (but don't let go of the Ctrl key). To unselect all selected icons with the keyboard, press any navigation key alone, without holding down Shift or Ctrl.

Selecting by filtering

Another way to select icons that have something in common is to filter out, or hide, the icons you don't want to select. For example, say you want to select only files that were created or edited today. On the View tab, choose the Details Layout option. Click the arrow next to the Date modified column heading and choose the Today option. Or, perhaps you want to select only TIFF files, as in Figure 21.5. In that case, use the Type column to filter the view.

Screenshot of File Explorer window displaying on the details pane 12 picture icons which are TIFF images only.

Figure 21.5 Hide all except TIFF files.

You also can filter by using the Search box at the top of the folder. Be aware that the search results may include files from subfolders. The results depend on your selection choice in Folder and Search Options, as discussed in Chapter 20. For example, say you want to select all PNG and GIF images in a folder. You can type the following into the Search box for the folder:

  1. type:gif OR type:png

Or type the following:

  1. *.gif OR *.png

Make sure you use an uppercase OR to separate the two types. The search results include only files with .gif and .png extensions.

When only the icons you want to select remain visible, select them all using any technique described earlier (for example, press Ctrl+A). None of the hidden icons are selected, so you can move, copy, delete, or rename the selected icons without affecting anything else.

Selecting by lassoing

You can also select multiple icons by dragging the mouse pointer or your finger (on a touchscreen device) through them. The problem is that if you want to select by lassoing, you have to get the mouse pointer to some empty spot near the first icon you want to select, without selecting any icons. That's difficult in Windows 10 because you have little or no empty space between icons. What appears to be empty space isn't empty at all.

You can see this if you use the single-click method to open icons. After you've positioned the mouse pointer somewhere near an icon, select the icon. When you've selected an icon, if you start dragging, you only move the icon; you don't select multiple icons. The mouse pointer has to be in neutral territory (not on an icon) before you start dragging.

To see where the empty space is in the current view, press Ctrl+A to select icons. Empty space appears in white. To select by dragging, move the tip of the mouse pointer into a white area near the first icon you want to select. Then hold down the left mouse button and drag through all the icons you want to select.

Selecting most icons in a folder

The old “invert selection” technique from previous versions of Windows still works. But the option is available only from the Home tab. As the name implies, the Invert Selection option unselects all selected icons and selects the ones that weren't selected. Say you want to select most, but not all, of the icons in a folder. You can start by selecting the few icons you don't want to select. Then choose the Home tab and click the Invert Selection option.

Selecting from multiple folders

To select icons from multiple folders, perform a search that finds all the icons you want to select. In the search results, you can select all icons, or only specific icons using any of the preceding methods.

Unselecting all icons

If you have one or more icons selected and want to unselect them all, click a neutral area to the right of, below, or between icons (if you can find such an area).

Moving and Copying Files

Many reasons exist for moving and copying files. If you've been saving files in a willy-nilly manner, you may want to move them around into folders that make more sense so they're easier to find. Or, if you end up with hundreds or thousands of files in a folder and you get sick of looking through all their names, you may want to create some subfolders and then move some of those files into subfolders.

If you have a bunch of files on external disks, you may want to copy them to your hard disk where you can work with them more easily. Or, if you need to send files to someone whose e-mail account has file-size limits, you may want to copy some files to an external disk to put in the mail. Then again, you may want to copy some files to an external disk as a backup, just in case some mishap damages the copy on your hard disk.

Whatever your reason for moving or copying files, the techniques are the same. First, understand the difference between moving and copying. When you move a file from one place to another, you have only one instance of the file. It's in the new location rather than the old location. When you copy a file, you end up with two instances: the original in the original location and an exact copy in the new location.

Moving and copying usually involve two locations. These locations may be two folders in the same drive, or two entirely different drives. One location is the source The other location is the target or destination Here's the difference:

  • Source: The drive and/or folder that contains the files you want to move or copy (the “from” drive and/or folder).
  • Destination or target: The drive and/or folder to which you want to move or copy files (the “to” drive and/or folder).

The source can be any folder on your network, hard disk, a flash drive, a memory card, an external device (such as a digital video camera), or a DVD. The same is true for the destination in most cases, although copying files to CDs and DVDs requires methods that are different from those described in this chapter.

Moving files to a subfolder

One of the most common reasons to move files is that you've created a new, empty subfolder within some existing folder and want to move some files into that new subfolder. To do so, do one of the following:

  • Drag any item onto the subfolder's icon, and release the mouse button.
  • Select the items you want to move and drag any one of the selected items to the subfolder's icon; then release the mouse button.
  • For touchscreens, press and hold down on the file's icon and drag the file to its new location. Lift your finger off the screen when the file reaches the new destination.

The main trick is to make sure that you get the mouse pointer or your finger on the subfolder's icon. When the mouse pointer is directly on the subfolder's icon, you see the words Move to foldername at the mouse pointer (where foldername is the name of the folder into which you're moving the file). For example, in Figure 21.6 we're about to drop a selected icon into a subfolder named Camera Roll. To drop the files into the folder, release the mouse button without moving the mouse pointer away from that folder.

Image described by caption and surrounding text.

Figure 21.6 About to drop selected icons onto a subfolder's icon.

If you change your mind partway through the drag-and-drop operation, tap the Esc key and then release the mouse button. If it's too late for that because you've already dropped the items, press Ctrl+Z to undo the move.

If you want to copy, rather than move, the files to a subfolder, drag with the right mouse button. After you drop the file, click Copy Here on the menu that appears. Optionally, you can drag with the left mouse button, but you have to press and hold down the Ctrl key before you release the mouse button.

Copying to/from external disks

You can copy files to external disks in many ways. But don't forget that disk size is limited. And the rules for copying to CDs and DVDs are different from those described here. Refer to Windows Help if you plan to copy files to a CD or DVD.

You first have to know how much space you have on the external disk, which means you have to put the disc into its drive and open your This PC folder. When you view icons in the This PC folder as Tiles, each drive's available space shows with its icon. Or if you can see the drive's icon in the Folders list, right-click that and choose Properties. In the properties sheet that opens, the Free Space number tells you how much room you have.

Then you need to know how much space the file(s) you're about to copy require. For that, you can select the icons you intend to copy. If the Details pane is open, you see their combined size next to the Size option. But that size isn't entirely accurate because it doesn't take into account the small amount of additional overhead involved in storing files on disk. For a more accurate size, right-click any selected icon and choose Properties. The Size On Disk number in the properties sheet more accurately describes how much disk space you need to store all the selected files. If the external disk doesn't have enough space, select and copy fewer files.

When you know the files will fit, you can use any of the techniques in the following sections to copy files to the external disk. In addition, you can use these techniques to copy files from an external disk or portable device, such as a camera or music player, to your hard disk.

Moving and copying by dragging

You can move or copy any file (or selected files) to any location whose name you can see in the Navigation pane. You can also create a shortcut to the file. As usual, if you want to move or copy multiple items, first select their icons. Then just drag any one of them to the appropriate location in the Navigation pane, as illustrated in Figure 21.7. That location can be any folder or any drive.

Similar to Figure 21.6 but selected icons are about to be moved to Windows Photo Viewer folder.

Figure 21.7 Drag icons to any drive or folder in the Navigation pane.

When dragging, make sure you position the tip of the mouse pointer directly on the name of the drive or folder to which you want to copy. If you drag with the left mouse button, you see Move To or Copy To when the mouse pointer is in position. The rules are the following:

  • If you drag to a different drive, including an external drive or a network drive, Windows assumes you want to copy.
  • If you drag to another folder on the same drive, Windows assumes you want to move.

You rarely need to move a file to an external disk. External disks are mainly used for copies of files on your hard disk. Likewise, you rarely need to have two copies of the same file on your hard drive. But you aren't stuck letting Windows 10 decide whether to move or copy. Just press and hold down Alt, Shift, or Ctrl before you release the mouse button to drop the files. Here's what happens when you press one of these keys:

  • Alt: A shortcut to the file is created.
  • Shift: Files are moved to the location.
  • Ctrl: Files are copied to the location.

As an alternative to using the keys, you can drag with the right mouse button instead of the left. When you release the mouse button to drop, you see a menu. Click Move or Copy. Click Cancel if you change your mind and decide to do neither.

Moving or copying by using two open folders

Positioning the tip of the mouse pointer directly on the destination drive or folder in the Navigation pane isn't always easy. You may prefer to open the source and destination locations at the same time. Then simply drag from one open window to the other.

The trick is to open two instances of Explorer: one for the source and one for the destination. Then size and position so you can see at least some part of both. For example, in Figure 21.8, the left window is a folder on the hard drive.

  1. Open the source folder or drive (from which you want to move/copy files).
  2. Right-click the File Explorer icon on the taskbar and choose File Explorer. This starts a second instance of a File Explorer window.
  3. In the second Explorer window, navigate to the destination drive or folder.
  4. Right-click the clock in the lower-right corner of the screen and choose Show Windows Side by Side, or simply size and position the windows to suit your needs, as shown in Figure 21.8.
Screenshots of two File Explorer windows displaying on the left window the selected icons to be moved and on the right window the Pictures folder highlighted where the selected icons are to be moved.

Figure 21.8 Drag icons from one folder to the other.

Now that you can see both open folders, select the items you want to move or copy. Then drag them into the main center pane of the destination folder and drop them there. Or, right-drag the items so you can choose Move or Copy after you release the mouse button.

Using cut-and-paste to move or copy files

You can also copy and paste files to copy them, or cut and paste to move files. The procedure goes like this:

  1. Navigate to the drive or folder that contains the items you want to move or copy.
  2. To move or copy multiple items, select their icons. Then:
    • To move the items, right-click any selected item and choose Cut or press Ctrl+X.
    • To copy the items, right-click any selected icon and choose Copy or press Ctrl+C.
  3. Navigate to the destination drive or folder.
  4. Paste using any of the following methods:
    • Click the Home tab and choose Paste.
    • Press Ctrl+V.
    • Right-click some empty space in the main, center pane of the destination window and choose Paste.

Making a copy in the same folder

You may want to make a copy of a file within the same folder. For example, maybe you have a large photo from your digital camera, and you want to make a smaller version for e-mail or for use in documents. Don't shrink down the original because that's the best one to use for editing and printing. Here's the quick and easy way to make copies:

  1. Select the icon (or icons) you want to copy.
  2. Press Ctrl+C and then press Ctrl+V (to copy, then paste).

The copied files have the same name as the originals followed by – Copy, as in Figure 21.9. You can rename the copies if you like, but that isn't necessary. You can make any changes you want to the copies. Those changes have no effect on the originals.

Screenshot of File Explorer window displaying on the details pane the original and copied icons in the same folder. Copied icons have the term Copy added to their names.

Figure 21.9 Original files and copies.

Undoing a move or copy

If you complete a move or copy operation and then change your mind, you can undo the action. But you have to do it soon because you can only undo your most recent action. For example, you can't move or copy, then do a bunch of other things, and then come back and undo the move or copy. Use one of these techniques to undo a move/copy:

  • Press Ctrl+Z.
  • Click the down arrow on the Quick Access toolbar (which is on the File Explorer title bar) and choose Undo.
  • Right-click some empty white space in the main pane of either folder and choose Undo Move or Undo Copy.

This location already contains…

A folder cannot contain two files that have the same name. If you move or copy a file into a folder (or onto a drive) and that destination already has a file with the same name as the one you're bringing in, you see a message similar to the one in Figure 21.10. In the example, we're copying a file. The message explains what's going on and gives you some choices.

Screenshot of Replace or Skip Files subwindow stating the destination already has a file with the name and presenting options to replace file in the destination, to skip the file from moving, or compare the files.

Figure 21.10 The destination already has a file with that name.

Before you make a decision, take a look at the source you're copying from and the destination to which you're copying. That information appears at the top of the Replace or Skip Files dialog. If that isn't where you intended to copy from and to, click the Close button to cancel the whole operation. Then rethink where you want to move/copy from and to, and start over. But this time, make sure you get both locations right.

If the source and destination are correct, then think about what you want to do with the copy that's already in the destination. The following options are available in the Windows 10 Replace or Skip Files dialog box:

  • If you want to replace the file at the destination with the one you're moving or copying, click the first option, Replace the file in the destination.
  • If you want to keep the file that's already at the destination and leave well enough alone, click Skip this file. The move/copy operation is canceled. The outcome is just as though you never tried to move or copy.
  • If you want to compare file information for both files, click the third option — Choose Compare Info for Both Files. This displays the File Conflicts dialog box, which is shown in Figure 21.11. You select one or both of the files. If you select both, the file is moved or copied. Its name is the same as the original name followed by a number, like Landscape-EastWing–(2), for example.
Image described by caption.

Figure 21.11 The File Conflicts dialog box displays when a folder already includes the same file as the one you want to copy or move there.

Click Continue when you're ready to complete the copy procedure.

The bottom line is that you can move or copy any file anywhere at any time with no restrictions. First, decide why you want to move or copy. Then you need to know where the item is and where you want to move or copy it to. Next, use either a dragging method or a copy-and-paste method described earlier to move or copy the file.

In addition to the techniques already described, you can get files into your computer using the methods listed here:

  • To get pictures from a digital camera into your computer, use the Photos app (see Chapter 17).
  • To get music from a CD or portable music player into your computer, use Windows Media Player (see Chapter 18).

Renaming Files

Renaming a file or folder is simple. Right-click the item you want to rename and choose Rename. The existing name becomes highlighted in a new color (the default is blue). You can type a new name or edit the current name, and then press Enter.

If you've taken filename extensions out of hiding, that part of the name isn't highlighted. For example, the .jpg extension on the highlighted photo shown in Figure 21.12 isn't highlighted. That's because you don't want to change the extension unless you really know what you're doing. Guessing is unlikely to work. At the very least, make sure you know the extension you're about to change. That way, if you ruin the file, you can rename the file back to the original extension (in case you miss the opportunity to undo the rename).

Screenshot of File Explorer window displaying on the details pane a picture icon being renamed.

Figure 21.12 Renaming the file.

Undoing a rename

You can undo a rename as you can undo just about anything else. But as always, you have to do so fairly soon after the rename. Simply press Ctrl+Z. If it's too late for that, you have to manually rename the file to its original name and extension.

Renaming multiple files

To rename multiple files, select all their icons using any methods described near the beginning of the chapter. Then right-click any one of them and choose Rename. Type the new name (again, don't change the extension if it shows up) and press Enter. The files are given the name you specified. All but the first now have numbers. For example, if you renamed to River, the files are named River, River (2), River (3), River (4), and so on.

If you have a relatively large number of files and want to rename just a part of the filename for each one, you can turn to the Command Prompt to rename the files. For example, assume that you have a set of files named img-old-01.jpg, img-old-02.jpg, img-old-03.jpg, and so on in sequence. You want to replace the word old with the word new. Here's how to do it:

  1. Press Windows+X and choose Command Prompt to open a command console.
  2. Type CD (path) where (path) is the path to the folder where the files reside that you want to rename. For example, assuming the files are located in your Documents folder and your username is rtidrow, type CD Users tidrowMy Documents.
  3. Type the command rename img-old-??.jpg img-new-??.jpg and press Enter.

The question marks in the command essentially tell Windows to leave those characters alone. In this example, the sequential image numbers remain the same and only the word in the middle of the filename is changed.

Before you try renaming multiple files using the command console in this way, we suggest you make a backup copy of the files in a different folder. If you mess up the filenames by typing an incorrect command, you can copy the files back to the original folder to restore the old filenames.

Deleting Files

In computers, the term delete is synonymous with “throw in the trash.” That's important to know because you don't throw important paper documents from your filing cabinet into the trash. Likewise, you don't want to delete anything important that's on your computer.

Deleting files and folders is easy. Perhaps it's too easy, because it's a leading cause of headaches and disasters, especially among beginners and casual computer users who try to learn by guessing. Deleting and “moving to the Recycle Bin” are basically the same thing. So, let's begin with a couple of good guidelines. Before you delete an item or move it to the Recycle Bin, ask yourself two questions:

  • Do I know exactly what this file (or folder) is?
  • Am I 100 percent certain that neither I nor my computer will need it in the future, ever?

If the answer to both questions is “Yes,” delete the file. If the answer to either question is “No,” don't delete the file or move it to the Recycle Bin.

Deleting is a simple process. If you want to delete a single file or folder, first select its icon. Optionally, if you want to delete multiple items in one fell swoop, select their icons. Then do whichever of the following is most convenient for you:

  • Right-click the icon (or any selected icon) and choose Delete.
  • Press the Delete (Del) key.
  • Select the Home tab and click Delete.
  • Drag the selected item(s) to the Recycle Bin.

By default, with Windows 10, you aren't prompted to confirm before the item(s) are deleted. Once you delete the file, it's sent to the Recycle Bin.

However, you can set up Windows 10 to display the confirmation if you want. To do so, right-click the Recycle Bin and choose Properties. In the Recycle Bin Properties dialog box, choose Display delete confirmation dialog, and then click OK. This dialog box is shown in Figure 21.13.

Screenshot of Recycle Bin Properties dialog box displaying selected radio button for Custom size and checked box for Display delete confirmation dialog. OK, Cancel, and Apply buttons are located the bottom.

Figure 21.13 Configuring the Recycle Bin for confirmation before deleting.

Now when you delete a file using the preceding methods, the Delete File message box appears. Figure 21.14 shows an example of the confirmation message.

Image described by caption and surrounding text.

Figure 21.14 Asking for confirmation before deleting.

Read the message, and then click Yes only if you're sure. If you're unsure, click No. Clicking Yes deletes the files. Clicking No keeps the files where they are.

When you send something to the Recycle Bin, you get one last chance to change your mind. It's like fishing something out of the wastepaper basket before you empty it for good. That doesn't mean you should put things you intend to keep in the Recycle Bin. You wouldn't put important papers in your trash can. Never put important files or folders in your Recycle Bin.

When you permanently delete a file or folder, you can't turn back. Whatever you permanently deleted is gone for good and you can't change your mind. Permanently deleting a file is akin to putting something down the garbage disposal or dousing the thing with gasoline and burning it to ashes. You have no “undo” for such actions.

Using the Recycle Bin

The Recycle Bin stores copies of files you've deleted from your hard disk. You can quickly see if one or more files are in the Recycle Bin by looking at its icon on the desktop. If the icon shows that the trash can is empty, then no files or folders are currently in the Recycle Bin. If the icon appears to have “trash” in it, then you know that one or more files or folders have been sent to the Recycle Bin and it has not been emptied since the last file was sent there.

To open your Recycle Bin, use whichever method is easiest for you:

  • Open the Recycle Bin on the desktop.
  • Click Recycle Bin in the Folder list in Explorer's Navigation pane.
  • Click the leftmost arrow in Explorer's Address bar and choose Recycle Bin.
  • Type Recycle Bin in Explorer's Address bar and press Enter.

When the Recycle Bin opens, it looks like any other folder. Figure 21.15 shows an example.

Screenshot of File Explorer window with the Manage tab opened presenting the Recycle Bin links on the left (navigation pane) and on the right (display pane) the files under Recycle Bin.

Figure 21.15 An open Recycle Bin.

Each icon in the Recycle Bin represents an item that's in your computer trash can, so to speak. You have basically two ways to use the Recycle Bin:

  • Restore files that you've accidentally deleted, so they go back to their original folders. (This is the same as fishing something out of your real trash can.)
  • Empty the Recycle Bin, thereby permanently deleting the files within it to reclaim the disk space they were using. (This is the same as emptying your real trash can into a dumpster or incinerator.)

The sections that follow look at each option.

Recovering accidentally deleted files

If you accidentally deleted some files or folders from your hard disk, and if they were sent to the Recycle Bin, you can get them back, provided that you don't empty the Recycle Bin first. You have three ways to do that:

  • To put all items back where they were, click Restore All Items on the Manage tab.
  • To put a single item back where it was, right-click its icon and choose Restore. You can also click the Manage menu to access the Restore option.
  • Select multiple icons, right-click any selected icon, and choose Restore to put all those selected items back where they were.

Each file and folder you restore is returned to its original location.

Permanently deleting Recycle Bin files

When you feel confident that the Recycle Bin contains only folders and files that you'll never need again, click Empty the Recycle Bin in the toolbar. The icons in the Recycle Bin disappear. The files and folders that those icons represented are permanently deleted from your hard disk. The space they occupied is freed up for anything you might want to save in the future.

If you want to remove only one or a selection of files from the Recycle Bin, select those files, right-click, and choose Delete. Windows asks if you want to permanently delete the files, removing them from the Recycle Bin. Click Yes to delete them, or No to leave them in the Recycle Bin.

When you've finished with the Recycle Bin, you can close it as you would any other window — by clicking the Close (X) button in its upper-right corner.

For all intents and purposes, you should consider the files that were in the Recycle Bin as permanently gone. But if you messed up and emptied too early, you may be able to get some of the files that were in there back using the Previous Versions feature discussed in Chapter 24.

Creating and Deleting Shortcuts

Shortcuts provide an easy way to get to a file or folder without navigating through a bunch of folders. For example, say you have an external disk drive X. On that drive, you have a folder named My Big Project inside another folder named Xternal Docs. To view the contents of your My Big Project folder, you have to open This PC folder, open the icon for drive X, open the Xternal Docs folder, and then open the My Big Project folder. Doing that repeatedly gets tiresome.

If you create a shortcut to My Big Project, you don't have to go through all those steps. You simply open the My Big Project shortcut icon. That shortcut icon can be anywhere you like — on the desktop, in your Documents folder, in the Favorites pane — or any combination thereof.

You can create a desktop shortcut to virtually any program, folder, or file by right-clicking that item's icon and choosing Send To 1 Desktop (create shortcut). You can also use any of the following methods to create a shortcut to a file or folder:

  • Hold down the Alt key as you drag an icon to the folder in which you want to place the shortcut.
  • Drag, using the right mouse button, the selected icon(s) to where you want to put the shortcuts. After you release the right mouse button, click Create Shortcuts Here.
  • Copy the selected icon(s) to the Clipboard (press Ctrl+C or right-click and choose Copy). Then right-click an empty space at the location where you want to place the shortcuts and choose Paste Shortcut.

After you have a shortcut, you can double-click (or click) its icon to open the item to which the shortcut refers.

Understand that when you delete a shortcut to a resource, you delete only the shortcut. You don't delete the folder or file to which the shortcut refers. That means you can easily create a bunch of shortcuts to a folder you're working with right now.

Later, when you move to another project in another folder, you can delete those shortcuts and replace them with new shortcuts to the folder you're working in. But make sure you delete the shortcuts only, not the real folder. When you delete the real folder, you delete everything that's in that folder. You also render the shortcuts useless because the location to which they refer no longer exists. When you try to open a shortcut that points to a nonexistent file or folder, you see a message like the one in Figure 21.16.

Screenshot of Problem with Shortcut message box stating that the item Watermelon.jpg shortcut was changed or moved. A question is also displayed asking to delete the shortcut with Yes and No button as the options.

Figure 21.16 Opening a shortcut that leads nowhere.

If you deleted an item recently and it's still in the Recycle Bin, right click the item and select the Restore option. The original item is taken out of the trash and put back where it belongs, and the shortcut works again. Otherwise, if you have no way to recover the item to which the shortcut refers, all you can do is delete the now-useless shortcut by clicking the Yes button.

If you're thinking about deleting an icon, but you aren't sure if it's a shortcut or the real thing, you have ways to find out. For one thing, all links in the Favorites portion of Explorer's Navigation bar are shortcuts. Desktop icons you control from the Desktop Icon Settings dialog box are also shortcuts. We aren't suggesting you delete any of those unless you have a very good reason, but if you delete one, be aware that you're deleting only the shortcut and not the actual item.

Shortcut icons of your own making have many characteristics that make it easy to distinguish them from the items to which they refer. The most obvious is the curved arrow that appears right on the icon. The name of the icon usually has - shortcut at the end (if you haven't renamed the shortcut). The filename extension for a shortcut icon is always .lnk (for link). The size of a shortcut is always tiny (1KB or less). When you right-click the icon and choose Properties, the General tab shows the Type of File as Shortcut (.lnk). The Shortcut tab shows information about the icon and its target, as in Figure 21.17.

Image described by caption and surrounding text.

Figure 21.17 Anatomy of a custom shortcut icon.

When you delete a shortcut, you delete only the shortcut, not the item to which it refers. So, you can create and delete shortcuts on-the-fly without losing any important files or folders. But the number-one rule of deleting still applies: Know exactly what you're deleting and why you're deleting it before you delete.

Managing Files with DOS Commands

This section is for people who were around in the DOS days and remember commands such as CD (change directory), Copy (to copy files), and so on. All those old DOS commands still work. Using DOS commands is useful in some instances, such as when you want to print a list of filenames or paste them into a file. So, in this section, we look at how all those commands work.

Getting to a command prompt

The first step to using DOS commands is to get to the Command Prompt window (also called a console window). To do so, press Windows+X and then choose Command Prompt. A window reminiscent of ye olde DOS days opens, complete with the standard prompt that displays the folder (directory in DOS terms) that you're currently in. Figure 21.18 shows an example. Note that we've changed the size of the default window from 80 × 25 pixels to 120 × 60.

Image described by caption and surrounding text.

Figure 21.18 The Command Prompt window.

The Command Prompt window has a title bar and taskbar button. You can drag the window around by its title bar. To a limited extent, you can size the Command Prompt window by dragging any corner or edge, but the height is limited to the number of lines currently displayed within the window.

To get full control over the size of the Command Prompt window, you need to use its Properties dialog box. That Properties dialog box also lets you choose a cursor size, a Full Screen View, a font, text and background colors, and so forth.

You can get to the Command Prompt window's Properties dialog box in two ways: If you want to change properties for the current session only, right-click the Command Prompt title bar and choose Properties. If you want to change the defaults for future sessions as well, right-click the title bar and choose Defaults. The dialog box that opens is self-explanatory and is a normal Windows dialog box.

You can scroll up and down through the Command Prompt window using the vertical scroll bar at its right. The navigation keys don't work unless you right-click within the window and choose Scroll. You can't type normal characters in the scroll mode; you can just navigate up and down. To get out of scroll mode and back to normal typing, press Enter.

To exit a command prompt session, type exit and press Enter. Or close the Command Prompt program window by clicking its Close (X) button or by right-clicking its taskbar button and choosing Close.

Using the command prompt

The Command Prompt window works just like the screen did in DOS. You type a command and press Enter (assuming that you aren't in the aforementioned “scroll mode,” where typing normal characters triggers a beep). After you press Enter, you see the results of the command and another command prompt appears. For example, if you enter Help (that is, type the word Help and press Enter), you see a list of all the supported DOS commands.

To get help with a command, type its name followed by a forward slash and question mark. For example, entering the command dir /? shows help for the Dir command. The Doskey feature is enabled automatically (again assuming that you aren't in the bizarre scroll mode). So, you can use the up and down arrow keys (↑ and ↓) to retrieve previous commands from the current session. Press the left and right arrow keys (← and →) to bring back and remove the previous command one character at a time.

The mouse doesn't do much in the Command Prompt window, although you can select text. As mentioned, you can right-click the title bar (or its taskbar button) to get to the properties sheet. You can right-click and choose Scroll to enter the (disturbing) scroll mode where navigation keys move through the window and normal characters do nothing but beep at you (although pressing Enter terminates the scroll mode).

Copy and paste in the Command Prompt window

Right-clicking in the Command Prompt window provides some options that allow you to use copy-and-paste. It's tricky, but handy when you want to copy a lengthy list of filenames into a Word, WordPad, or Notepad document. If you'll be using the keyboard to select only a portion of the text, first use the scroll bar to navigate to the text that you want to select. If you'll be using the mouse to select a portion of text, or you'll be selecting all the text in the window, where you start is not so important.

To select the entire window, right-click within the window and choose Select All. To select only part of the window's contents, right-click within the Command Prompt window and choose Mark. You see a square cursor. To select with the keyboard, hold down the Shift key and use the arrow keys, PgUp, and PgDn keys to extend the selection through the text you want to select. With the mouse, move the mouse pointer to the far-right edge of the window, hold down the left mouse button, and then drag diagonally through the text you want to select.

After you've selected some text, press Enter to copy the selected text and clear the selection. From there, you can paste the copied text into any document that accepts pasted text.

You can paste a command into the window, but it has to be a valid DOS command. Just right-click near the command prompt and choose Paste.

Navigating from the command prompt

Navigating to a particular drive at the command prompt is easy. Type the drive letter followed by a colon and press Enter. For example, entering d: takes you to drive D:. Entering c: takes you to drive C:.

Use the cd (Change Directory) command, just as you did in DOS, to go to a folder on the current drive. You can use the following three cd commands:

  • cd takes you to the root folder of the current drive.
  • cd.. takes you to the parent of the current folder.
  • cd folder takes you to the subfolder specified by folder.

Using wildcards

When specifying filenames in most DOS commands, you can use wildcard characters to represent characters in the filename. Use the ? character to represent a single character and the * character to represent multiple characters. For example, a?c.txt matches abc.txt, a2c.txt, aqc.txt, and so on. By comparison, a*c.txt matches abc.txt, a12345c.txt, anotherc.txt, and so on.

A common use for the wildcard is to find all files of the same type, such as *.jpg, which would match all JPG files. So, the following command would list all JPG files in the current folder:

dir *.jpg

The following section explains how to use the dir command.

Printing a list of filenames

Perhaps the one thing that the DOS command offers that Explorer doesn't is the ability to easily print a list of filenames from any folder, or even a parent folder and all its subfolders. Although you can print directly by following any command with >prn, most people prefer to get that list into a Word or WordPad document. From there, you can edit and sort the filename list to your liking, and then print it.

You use the dir command to list the filenames. You may find some of the following optional switches useful for controlling how dir displays its output:

  • /s: Include filenames from subfolders.
  • /b: Display filenames in bare format (no headings or summary).
  • /w: Show in wide format.
  • /d: Same as wide, but sorted by columns.
  • /n: Use long list format with filenames to the far right.
  • /l: Use lowercase letters.
  • /o: Sort output by column as follows: n (by name), s (by size), e (by extension), d (by date), - (prefix for descending sort), g (group folder names first).

As an example of using the /o switch, the command dir /on lists filenames in ascending alphabetical order. The command dir /o-s lists filenames by size, in descending order.

Let's look at a practical example. Suppose you've downloaded music to your Music folder. The songs are organized into folders by artist and album. But you want a list of all song filenames, from all the subfolders.

Step 1 is to get to the parent folder of all the files you want to list. The DOS command is cd followed by the full path to that folder: for example, cd C:UsersyourUserNameMusic where yourUserName is the name of your user account.

Next, enter a dir command with the /s switch to list the filenames from all the subfolders. You can use any other switches in combination with /s. For example, here's a dir command that lists all the filenames in bare format:

dir /b /s

Here's one that lists files in the columnar wide format with filenames listed alphabetically by name:

dir /d /on /s

You can try out various DOS commands to see which presents the most reasonable list of filenames. Then, when you get a decent list, enter that command again, but follow it with >filename.txt where filename is any name of your choosing. The file is stored in the folder you're currently in. For this example, we use SongList.txt as the filename. So, you might enter a command like this at the command prompt:

dir /d /on /s >SongList.txt

You don't get any feedback on the screen after you redirect the output to a file. You can just exit the Command Prompt window. Then use File Explorer to navigate to the folder from which you ran the dir command. You'll find your SongList.txt file there. Right-click it and choose Open With 1 Microsoft Word (or whatever program you want to use to edit the file).

The list looks exactly like DOS output, which may not be ideal. But if you know how to use the program, you can easily select and delete anything you don't want in the document. Then, save it, print it, and keep it for future reference.

If you know DOS, you may be able to come up with more useful applications of your own. You can do anything at the Command Prompt window that you could do in DOS — even copy and delete files. Remember that for a quick overview of all the DOS commands available in the Command Prompt window, type help at the command prompt and press Enter.

Wrapping Up

Managing files and folders in Windows 10 is much the same as it was in earlier versions of Windows. You simply have more options. Here's a quick wrap-up of the main topics covered in this chapter:

  • To select a single icon to work with, click it (if you're using double-click to open files) or point to it (if you're using single-click to open files).
  • To select multiple icons, use Ctrl+click or Shift+click, or select it with your finger (if you have a touchscreen device) or the drag-through method, whichever is appropriate to your goal and easiest for you to use.
  • To move or copy selected files and folders, drag them to some new location, or use copy-and-paste, or use the Copy or Move options under File and Folder Tasks in the Explorer bar.
  • To rename a file or selected files, right-click and choose Rename.
  • To delete a file or selected files, right-click and choose Delete.
  • Small items you delete from your hard drive are just moved to the Recycle Bin.
  • Large files, and files you delete from removable media, are not sent to the Recycle Bin.
  • To recover a file from the Recycle Bin, right-click its icon and choose Restore.
  • To permanently delete all the files in the Recycle Bin and reclaim the disk space they're using, empty the Recycle Bin.
  • When you delete a shortcut to a resource, you delete only the shortcut — not the resource itself.
  • If you're a DOS guru, you can still use DOS commands to manage files. Press Windows+X and choose Command Prompt to get to the Command Prompt window.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset