home *** CD-ROM | disk | FTP | other *** search
/ CBM Funet Archive / cbm-funet-archive-2003.iso / cbm / c128 / os / cs-dos / cs-batch.sfx / dex.doc < prev    next >
Encoding:
Text File  |  1990-02-12  |  2.4 KB  |  59 lines

  1.   Command:     DEX
  2.  
  3.   Author:      Randy Winchester
  4.   
  5.   Date:        14 February 1993
  6.  
  7.   Syntax:      dex              Displays usage
  8.                dex /e [d]       Edit dex.txt [drive of dex.txt]
  9.                dex /s [d]       Save dex.txt [drive to save on]
  10.                dex string [d]   Find string in dex.txt
  11.  
  12.   Function:
  13.  
  14.   DEX is a batch file that impliments a simple Rolodex application.  The
  15. Rolodex file, DEX.TXT, is an ordinary text file that can contain names,
  16. addresses, phone numbers, or any other information.  DEX.TXT is loaded and
  17. saved by the CS-DOS PUT and GET commands, and edited with the text mode
  18. screen editor.  String searches of DEX.TXT use the CS-DOS GREP command.
  19. The Bank 1 version of GREP is preferred, since it doesn't disturb BASIC
  20. memory in Bank 0.
  21.  
  22.   DEX is somewhat flexible in the way it handles disk drives while looking
  23. for DEX.TXT.  DEX.TXT can be on any drive.  DEX always looks first on the
  24. currently logged drive for DEX.TXT.  If DEX.TXT isn't there, DEX will look
  25. for it on the boot drive before giving up with "DEX.TXT not found!"
  26. An optional drive letter can be included as the second parameter.  If
  27. included, DEX will look for DEX.TXT on the specified drive, and if not
  28. found, on the boot drive.
  29.  
  30.   Examples:
  31.  
  32.   dex                    displays usage syntax
  33.  
  34.   dex /e                 Gets DEX.TXT from the current drive.  If not
  35.                          found on the current drive, the boot drive is
  36.                          also searched.
  37.  
  38.   dex /e b               Gets DEX.TXT from drive B.  If not found on drive
  39.                          B, the boot drive is also searched.
  40.  
  41.   dex /s                 Saves DEX.TXT on the current drive.
  42.  
  43.   dex /s c               Saves DEX.TXT on drive C.
  44.   
  45.   dex pizza              Searches DEX.TXT on current drive (or boot drive
  46.                          if not on current drive) for the string "pizza."
  47.                          The search is case insensitive, so Pizza, pizza,
  48.                          pIZZA, and PiZzA would all match.  All lines from
  49.                          DEX.TXT containing the search string are
  50.                          displayed.
  51.  
  52.   dex pizza d            Same as previous example, except drive D is
  53.                          searched (followed by the boot drive if DEX.TXT
  54.                          isn't on drive D).
  55.  
  56.   A sample DEX.TXT file is included in this archive.  An actual DEX.TXT
  57. can be in any form that you care to give it.
  58.  
  59.