You will often want to see which files are stored on your diskettes or hard disk. For example, before you format a used diskette and erase its contents, always check the contents of the diskette to be sure you will not erase any valuable files.
The DIR command lists the names of all files in the selected directory on a diskette or hard disk. At the
DIR
and press Enter.
If you are logged on to drive A but want to see a directory of the files on the diskette in drive B, type:
DIR B:
and press Enter.
The DIR command lists the names of the files, and also lists any subdirectories, the sizes of the files in bytes, and the date and time each file was last modified. At the end of the directory listing is the number of files and available bytes on your diskette.
Creating and Using Subdirectories
Because a diskette or hard disk can store many files, you need a way of organizing them. Trying to find a particular file in a directory list of dozens or hundreds is difficult.
The simple solution to this problem is to divide a directory into subdirectories. There are four basic operations you need to know to create and use subdirectories:
•Creating subdirectories
•Changing subdirectories
•Using pathnames
Using |