Operating_systems-page25 - files. Also, in some cases a...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Jelena Mamčenko Operating Systems Lecture Notes on Operating Systems 25 23 Command Syntax Each DOS command has a mandatory part and some have an optional part. Presented here, the mandatory parts will be shown in bold CAPITAL LETTERS and the optional parts in lower case. For example, DIR d:pathname\filename.ext /p /w is the complete command for a disk directory. Note that only DIR is necessary. You may note the term pathname in the above command. The pathname is the full descriptive name to any location on the disk. It includes the names of all directories (see subdirectories later in this section). In some commands you may use wildcards. A wildcard, like the joker in a card deck, can stand for any character or group of characters. The ? represents any single character: FILE? = FILE1 or FILED etc. The * represents any group of characters: *.* = Any file and extension Use caution with wildcards. They can be dangerous with commands that do things like erase
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: files. Also, in some cases a wildcard formulation can be misleading. The combination AP*EX.COM does not mean all files that start with AP and end with EX in their root name and with a COM extension. It means all files starting with AP and having an extension of COM. The EX is meaningless as it is ignored because of the asterisk. Disk Directory To see a listing of what is on a disk, issue the DIRectory command. It comes with several options (shown are the most useful, not all). DIR d:filename.ext /p /w DIR alone will show the complete directory. With the optional filename, DIR will try to find just that file. • The /p option causes a pause when the screen fills. • The /w option yields a full 80-column display of just the filenames. There are other options for sorting the listing and displaying the contents of lower-level directories. Now we'll see what would happen when you type DIR at the prompt....
View Full Document

This note was uploaded on 12/29/2011 for the course CSE 362 taught by Professor Mavin during the Spring '09 term at SUNY Stony Brook.

Ask a homework question - tutors are online