/DIRECTORY
/DIRECTORY, StrArray
, FileName
, Ext
, Dir
Put the file names in the current directory into a string parameter
array.
Argument Descriptions
StrArray
Name of the "string array" parameter which will hold the returned values. String array parameters are similar to character arrays, but each array element can be as long as 128 characters. If the string parameter does not exist, it will be created. The array will be created as: *DIM,StrArray,STRING,64,2,numFileName
FileName
File name (64 characters maximum). Only files matching this name will be returned. The
FileName
ALL may match any file name.Ext
File name extension (8 characters maximum). Only files with an extension matching this name will be returned. A blank or ALL will match any extension.
- Directory
The directory in which the files reside. The default is the current working directory.
Notes
The /DIRECTORY command gets the file names in the current directory and puts them into a string parameter array. Each file will be included in the array as a name-extension pair.