1 LDIR
  LDIR provides a sorted list of the directories given.  The files and
  directories will be sorted and printed in separate lists.  A maximum
  of five names are printed per line.

  Format:

    LDIR [file-spec[,...]]
2 Parameters
file-spec[,...]
  Specifies one or more files to be listed.   The  syntax  of  a  file
  specification determines which file(s) will be listed, as follows:

  o  If you do not enter a file specification, the LDIR command  lists
     all versions of the files in the current default directory.

  o  If you specify only a device name, the  LDIR  command  uses  your
     default directory specification.

  o  Whenever the file specification does not include a file name  and
     file  type,  all versions of all files in the specified directory
     are listed.

  o  If a file specification contains a file name and/or file type and
     no version number, the LDIR command lists all versions.

  o  If a file specification contains  only  a  file  name,  the  LDIR
     command  lists  all  files  in the current default directory with
     that name, regardless of file type and version number.

  o  If a file specification contains  only  a  file  type,  the  LDIR
     command  lists  all  files  in the current default directory with
     that file type, regardless of file name and version number.

  If you specify more than one file, separate the file  specifications
  with  commas.   You  can  use  wildcard  characters in the directory
  specification, file name, file type, or version number fields  of  a
  file specification to list all files that satisfy the components you
  specify.
2 Command_Qualifiers
/DIRECTORIES

 /DIRECTORIES
 /NODIRECTORIES

  specifies whether directories are to be printed in the listing or if
  they are to be excluded.  This qualifier is positional.  The default
  is /DIRECTORIES.

/DOWN

 /DOWN
 /NODOWN

  specifies  whether  files  and  directories   are   to   be   listed
  alphabetically  across or down.  The default is /NODOWN, which lists
  across.

/EXCLUDE

 /EXCLUDE=(file-spec[...])

  Any files that match the listed file specification(s) are   excluded
  from the DIRECTORY operation.  If you specify only one file, you can
  omit the parentheses.

  You cannot specify directories or files in the  file  specifications
  you exclude.

  Wildcard characters are supported for file specifications.  However,
  you  cannot  use  relative  version  numbers  to  exclude a specific
  version.

/FILES

 /FILES
 /NOFILES

  specifies whether non-directory files  are  to  be  printed  in  the
  listing   or  if  they  are  to  be  excluded.   This  qualifier  is
  positional.

/OUTPUT

 /OUTPUT[=file-spec]
 /NOOUTPUT

  Controls where the output of the command is sent.   If  you  do  not
  enter  the  qualifier,  or  if  you  enter  /OUTPUT  without  a file
  specification, the output is sent to  the  current  process  default
  output stream or device, identified by the logical name SYS$OUTPUT.

  If you enter /OUTPUT with a partial file specification (for example,
  /OUTPUT=[JONES]),  LDIR is the default file name and LIS the default
  file type.  If you enter a file specification, it  may  not  include
  any wildcard characters.

  If you enter /NOOUTPUT, output is suppressed.
2 examples
  ldir

  ldir [.mydir]/out=mydir

  ldir [username.hisdir]/nofiles,[user2.otherdir]

  ldir [.bigdir...]/exclude=*.pas

  ldir *.pas/exclude=(myproject.pas,foo*.pas)
