Command Line

Command LBDIR

Function:

Add a list of file names to a list box.
Syntax:
LBDIR dlg_id id attr spec
dlg_idSpecifies the identifier of the dialog box that contains the list box.
idSpecifies the identifier of the list box.
attrSpecifies the attributes of the files to add to the list box. It can be the addition of any of the following values :-

0ReadwriteIncludes read-write files with no additional attributes.
1ReadonlyIncludes read-only files.
2HiddenIncludes hidden files.
4SystemIncludes system files.
16DirectoryIncludes sub-directories. Sub-directory names are enclosed in square brackets (ie. [ ]).
32ArchiveIncludes archived files.
16384DrivesIncludes drives. Drives are listed in the form [-x-], where x is the drive letter.
32768ExclusiveIncludes only files with the specified attributes. By default, read-write files are listed even if Readwrite is not specified.

specA string that specifies file name to add to the list. If the file name contains any wildcards (eg. *.*), all files that match and have the attributes specified by parameter attr are added to the list.
Note:

Copyright © 1995-2005 Lucien Cinc, All Rights Reserved
WinOne is an Australian registered trademark of Lucien Cinc