home *** CD-ROM | disk | FTP | other *** search
/ PC Format 5 / Disk5.iso / LD.DOC < prev    next >
Text File  |  1991-10-27  |  3KB  |  80 lines

  1.                      List Directory V1.0 (C)1990-1991 Richard Smith
  2.                      ==============================================
  3.  
  4.       Introduction
  5.       ============
  6.  
  7.       One of the frustrating things about DOS (and there are many) is the 
  8.       problem of keeping track of disk files. Its easy enough to remember 
  9.       where programs and data are on floppy disks but what about hard drives? 
  10.       These days, a 40 MB disk drive is considered the minimum usable size 
  11.       for serious work and drives with 100+ MB capacity are becoming common. 
  12.       The number of files on most hard disks will run into the thousands and 
  13.       keeping track of what files are where can be difficult and time-
  14.       consuming. 
  15.  
  16.       List Directory (LD) is a vastly enhanced DIR command written in Stony 
  17.       Brook Modula-2 for keeping track of what files are where. LD's main 
  18.       enhancements over the standard DOS DIR command are: 
  19.  
  20.       *LD can be told to 'tree walk' along a given path  listing the 
  21.       contents of sub-directories and sub-directories within sub-
  22.       directories etc. Using this function, it is possible to list, say, all 
  23.       files on drive 'C'. 
  24.  
  25.       *It is often desirable to list files which were created between certain 
  26.       dates. LD can search for files before, after or between given dates. 
  27.  
  28.       *LD gives full control over the way in which directories are listed. 
  29.       Formats from listing filenames in column format to maximum information 
  30.       including time/date stamps, file size and file attributes are 
  31.       available. In addition, LD can list directories only or files only. 
  32.  
  33.  
  34.       Directions for use
  35.       ==================
  36.  
  37.       List directory is invoked with:
  38.  
  39.       LD {path} {command..}  <--' (Enter / Return)
  40.  
  41.       Where {path} is an optional DOS format pathname, eg. 'C:\DOS\*.EXE' or 
  42.       '*.EXE'. If a file specification is not specified, the path must be 
  43.       terminated with '\', eg 'C:\DOS\'. 
  44.  
  45.       {Command..} is an optional parameter or parameters giving control over 
  46.       LD's functions. The available functions are: 
  47.  
  48.       -(F)ile  List only files
  49.       -(DI)rList only directories
  50.       -(S)ize  Show the size of the file in bytes 
  51.       -(D)ate  Show the time and date stamps of each file
  52.       -(T)ime  ditto
  53.       -(M)axShow the size, time and date stamps and file attribute information
  54.       -(W)alk {path} List sub-directories and entire tree structure. {path} 
  55.       is an optional DOS format pathname (as mentioned above)
  56.       -(B)efore <date> List files with date stamps before a given date. <date>
  57.       is a date in the form 'DD/MM/YYYY' eg. 16/5/90
  58.       -(A)fter <date> As above but after a given <date>.
  59.       -(H)elp  Lists the available commands.
  60.  
  61.  
  62.       Commands can be mixed to give great flexibility and power. 
  63.  
  64.       eg. To list the names and locations all .EXE files on drive 'C' that 
  65.       were created after 15th May 1990 and before 1st of January 1991: 
  66.  
  67.       LD -W C:\*.EXE -A 15/5/1990 -B 1/1/1991
  68.  
  69.       LD supports standard dos re-direction and filters such as MORE. 
  70.  
  71.       eg. To list all .EXE files on drive 'C' a page at a time: 
  72.  
  73.       LD C:\*.EXE -WALK | MORE
  74.  
  75.       To re-direct output to a file instead of the screen:
  76.        
  77.       LD C:\*.EXE -WALK >ALLEXE.TXT
  78.  
  79.  
  80.