home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / rcd14.zip / RCD.TXT < prev   
Text File  |  1993-09-01  |  4KB  |  47 lines

  1. /*===========================================================================* 
  2.  *  RCD.CMD                                                     version 1.4  * 
  3.  *                                                                           * 
  4.  *  This REXX script can be used to quickly change the current working       * 
  5.  *  directory, by searching the directory structure for directories that     * 
  6.  *  partially match the user supplied argument.  This is my first try at     * 
  7.  *  creating a useful REXX script.  This script is FREEWARE.  Please use it  * 
  8.  *  all you wish, and if you can improve it, please do so.  All I ask is     * 
  9.  *  that you drop me a note with a copy of the improvements.  You can        * 
  10.  *  contact me with suggestions or bug reports via email on the Internet at  * 
  11.  *  'robber@netcom.com' or CIS 70451,2661.  Thanks.                          * 
  12.  *                                                                           * 
  13.  *---------------------------------------------------------------------------* 
  14.  *  Usage: rcd [-r| r] [-s|/s] <dirname>                                     * 
  15.  *                                                                           * 
  16.  *  Flags: -r      Reads current directory structure and updates the rcd     * 
  17.  *                 database.  The database is kept in the hidden file        * 
  18.  *                 \RCD.DB on the current drive and is automatically         * 
  19.  *                 created, if it does not exist.                            * 
  20.  *                                                                           * 
  21.  *         -s     Matches <dirname> with any substring in the target,        * 
  22.  *                instead of the prefix of the target directory.             * 
  23.  *                                                                           * 
  24.  *  Changes current directory to a directory named in the database that      * 
  25.  *  matches or has <dirname> as a prefix.  If there is more than one         * 
  26.  *  possible destination then each choice is shown and the ENTER key         * 
  27.  *  chooses the destination.  The TAB and arrow keys move through the        * 
  28.  *  list and the ESC key quits without changing the directory.               * 
  29.  *---------------------------------------------------------------------------* 
  30.  *  Developed by:    Robert D. Reynolds      RDR   robber@netcom.com         * 
  31.  *  Suggestions by:  V. Phaniraj             VP    phaniraj@plains.nodak.edu * 
  32.  *                   Henry So, Jr.           HTS   henryso@tasha.poly.edu    * 
  33.  *                                                                           * 
  34.  *  The beginning: 07/07/92       RDR                                        * 
  35.  *           v1.0: 07/10/92       RDR                                        * 
  36.  *           v1.1: 07/11/92       RDR - Fixed bug with spaces in directory   * 
  37.  *                                      names.                               * 
  38.  *           v1.2: 07/14/92       RDR - Uses more REXX internal functions    * 
  39.  *                                      fixes bug when target was not found  * 
  40.  *                                      and problem with $DIRCMD.            * 
  41.  *           v1.3: 08/31/93       RDR - Fixed some bugs and added -S flag    * 
  42.  *                                VP  - add immediate change to subdirectory * 
  43.  *           v1.4: 09/01/93       RDR - Made database a hidden file          * 
  44.  *                                HTS - change so database retains case      * 
  45.  *                                                                           * 
  46.  *===========================================================================*/
  47.