SELECT.DIR |
|
|
The SELECT.DIR command constructs a select list from the contents of an operating system directory.
Format
SELECT.DIR pathname {FILE | DIRECTORY} {TO list} {COUNT.SUP} {PATHNAME}
where
The SELECT.DIR command scans the directory identified by pathname and constructs a select list containing the names of either the files or subdirectories in this directory. The casing of the directory items is maintained.
SELECT.DIR does not recurse down into sub-directories.
If successful, both @SELECTED and @SYSTEM.RETURN.CODE will be set to the number of item selected. If the command fails, @SYSTEM.RETURN.CODE will contain the negative value of the error number.
Example
SELECT.DIR C:\MYAPP\EMAILS TO 1 |