The information presented by the DIR command is as follows:

The filename & extension

The file size (in bytes)

The date the file was created or last updated

The time the file was created or last updated

The number of files listed in the directory

The number of unused bytes of space remaining on the disk

File Searches

You can also use the DIR command to search for specific files on a disk. To do this, enter the DIR command in the following format:

For instance, if you want to find the directory entry for a file named “MAYSALES.RPT” on the diskette in drive A, enter the command:

The computer will search the entire directory of the diskette for a file named MAYSALESRPT. If a file is found, it will appear as the only entry in the diskette’s directory. If there is no MAYSALES.RPT file on the diskette, the computer will display:

Using MS-DOS With Your Computer 4-25