You should know the following basic DOS commands to be able to complete some of the solutions in this book and get by in the world of Windows.
This, however, should not be considered a comprehensive list of all DOS commands and their options. See Windows XP in a Nutshell (O’Reilly) for a more thorough reference, not only on the Command Prompt, but on all of the various utilities included with Windows XP that use the Command Prompt.
The commands shown here are in
width, and any parameters (the information you
supply to the command) are in
doesn’t matter which case you use when you type them in the command
prompt (DOS, like Windows, is not case-sensitive). If there is more than
one parameter, each is separated by a space:
Changes the attributes of a file or folder. The four
R for read only,
S for system,
A for archive, and
H for hidden.
In Explorer, you can right-click a file or group of files
and select Properties to change
attrib is the
DOS counterpart to this functionality. In addition,
attrib lets you change the
S (system) attribute, something Explorer
doesn’t let you do. Here are some examples:
This turns on the
H parameter for the file
myfile.txt, making the file
R (read-only) parameter for the file
file.doc (note that quotation marks
are used because of the space in the filename).