home *** CD-ROM | disk | FTP | other *** search
- Command: DEX
-
- Author: Randy Winchester
-
- Date: 14 February 1993
-
- Syntax: dex Displays usage
- dex /e [d] Edit dex.txt [drive of dex.txt]
- dex /s [d] Save dex.txt [drive to save on]
- dex string [d] Find string in dex.txt
-
- Function:
-
- DEX is a batch file that impliments a simple Rolodex application. The
- Rolodex file, DEX.TXT, is an ordinary text file that can contain names,
- addresses, phone numbers, or any other information. DEX.TXT is loaded and
- saved by the CS-DOS PUT and GET commands, and edited with the text mode
- screen editor. String searches of DEX.TXT use the CS-DOS GREP command.
- The Bank 1 version of GREP is preferred, since it doesn't disturb BASIC
- memory in Bank 0.
-
- DEX is somewhat flexible in the way it handles disk drives while looking
- for DEX.TXT. DEX.TXT can be on any drive. DEX always looks first on the
- currently logged drive for DEX.TXT. If DEX.TXT isn't there, DEX will look
- for it on the boot drive before giving up with "DEX.TXT not found!"
- An optional drive letter can be included as the second parameter. If
- included, DEX will look for DEX.TXT on the specified drive, and if not
- found, on the boot drive.
-
- Examples:
-
- dex displays usage syntax
-
- dex /e Gets DEX.TXT from the current drive. If not
- found on the current drive, the boot drive is
- also searched.
-
- dex /e b Gets DEX.TXT from drive B. If not found on drive
- B, the boot drive is also searched.
-
- dex /s Saves DEX.TXT on the current drive.
-
- dex /s c Saves DEX.TXT on drive C.
-
- dex pizza Searches DEX.TXT on current drive (or boot drive
- if not on current drive) for the string "pizza."
- The search is case insensitive, so Pizza, pizza,
- pIZZA, and PiZzA would all match. All lines from
- DEX.TXT containing the search string are
- displayed.
-
- dex pizza d Same as previous example, except drive D is
- searched (followed by the boot drive if DEX.TXT
- isn't on drive D).
-
- A sample DEX.TXT file is included in this archive. An actual DEX.TXT
- can be in any form that you care to give it.
-
-