The DIR Command
Typing DIR and pressing return will display a list of every file stored in the current directory, which is the CDI equivalent of viewing a folder listing in Explorer. Various parameters are available to change the information displayed by the DIR command, the most common and useful of which is the /P switch. This instructs the DIR command to display only one page of directory listings, and then pause the display until a key is pressed useful for directories with large amounts of files.
At the bottom of every directory, listing a summary paragraph is displayed, detailing the number of files in the directory and the total disk space they consume.
DIR has many useful options, so it is worthwhile reviewing the help output of the /? switch. In many cases it is possible to combine switches on one command.
Just using the DIR command to list the entire contents of directories has limited uses, so wildcards can be used to modify the output. They are used in exactly the same way as the Explorers GUI search feature; just specify a partial pattern and use an asterisk to allow the DIR command to match the rest. A second, less used wildcard is available by using a question mark in place of unknown characters. Whereas a single asterisk will pattern match any number of characters, a question mark will only pattern match one character.
Some examples of patterns and files they match are shown in Table 6.
Home - Table Of Contents - Contact Us
CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005
Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version © Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.