Use the DIR command to list the files in a directory.
Option
filespec
Specifies a filename, including the drive or directory. Wildcards can be used.
About the DIR Command
This command is similar to the operating system DIR command. The R:BASE DIR command pauses at the end of each full screen of information. This command does not support the wide-display (/W) or pause (/P) switches of the operating system DIR command.
If you specify a file name, R:BASE displays information for that file only. You can use an operating system wildcard character (question mark (?) or asterisk (*)) to display a group of files.
DIR lists the file name, extension, size in bytes, and the date and time files were last modified. DIR also displays the number of files listed and bytes available on disk. Subdirectory names, if any, are indicated with <DIR>.
Use DIR to test a file specification that uses a wildcard before using the COPY, RENAME, or ERASE commands.
If the directory or disk is empty, or if the specified file(s) is not in the directory, DIR displays:
File not found.
The DIR command supports long (over 80 character) strings, and long strings with spaces.
Examples
The following command could be used to review the database files that another command would affect. DIR could display the list that follows the command.
DIR c:\olddbdir/*.rb?
Volume in Drive C has no label
Directory of C:\OLDDBDIR
CONCOMP RB1 7344 4-12-93 8:54p
CONCOMP RB2 237568 4-12-93 8:54p
CONCOMP RB3 57344 4-12-93 8:54p
CONCOMP RB4 64344 4-12-93 8:54p
CAT RB1 4096 4-08-93 4:13p
CAT RB2 8192 4-08-93 4:13p
CAT RB3 16384 4-08-93 4:13p
CAT RB4 6473 4-08-93 4:13p
HIFI RB1 6752 4-11-93 9:57p
HIFI RB2 139264 4-11-93 9:57p
HIFI RB3 32768 4-11-93 9:57p
HIFI RB4 8932 4-11-93 9:57p
9 File(s) 7335936 bytes free
The following command displays the list of files in the MRKTING directory on drive C:.
DIR c:\mrkting
The following command displays information from the current directory about all files whose names are MYDB before the file extension.
DIR mydb.*