Display DOS directory information.
The contents of the directory are returned in the variables listed below.
DOSDIR command shows the contents of a
directory in the same manner as when the
is issued in DOS.
DOSDIR path [options]
path is as follows:
For filename and extension, you can use the wildcard characters asterisk (*) and question mark (?).
If you do not specify path, Entire
Connection assumes that the
DOSDIR command was
issued with wildcard characters and searches for the next file which matches
the pattern that was last used.
If the file is not stored in the current DOS path, you must specify the full path for this file.
options includes the following:
|A||files with the "archive" attribute only|
|H||hidden files only|
|R||read-only files only|
|S||system files only|
If you do not specify any options, only normal files are listed. Directories, read-only, system and hidden files are not shown in this case.
List all ncp files in the current directory:
DOSDIR *.ncp /* list first "ncp" file DOSDIR /* list subsequent "ncp" files
List all files containing the "archive" attribute:
DOSDIR *.* A /* list first file containing the "archive" attribute DOSDIR /* list subsequent files containing the "archive" attribute
List all files which match the contents of the variable
DOSDIR #FILESPEC /* list first file which matches #FILESPEC DOSDIR /* list subsequent files which match #FILESPEC
FILE NOT FOUND,
NO MORE FILES or
See also: Local Variables