home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rcd14.zip
/
RCD.TXT
< prev
Wrap
Text File
|
1993-09-01
|
4KB
|
47 lines
/*===========================================================================*
* RCD.CMD version 1.4 *
* *
* This REXX script can be used to quickly change the current working *
* directory, by searching the directory structure for directories that *
* partially match the user supplied argument. This is my first try at *
* creating a useful REXX script. This script is FREEWARE. Please use it *
* all you wish, and if you can improve it, please do so. All I ask is *
* that you drop me a note with a copy of the improvements. You can *
* contact me with suggestions or bug reports via email on the Internet at *
* 'robber@netcom.com' or CIS 70451,2661. Thanks. *
* *
*---------------------------------------------------------------------------*
* Usage: rcd [-r| r] [-s|/s] <dirname> *
* *
* Flags: -r Reads current directory structure and updates the rcd *
* database. The database is kept in the hidden file *
* \RCD.DB on the current drive and is automatically *
* created, if it does not exist. *
* *
* -s Matches <dirname> with any substring in the target, *
* instead of the prefix of the target directory. *
* *
* Changes current directory to a directory named in the database that *
* matches or has <dirname> as a prefix. If there is more than one *
* possible destination then each choice is shown and the ENTER key *
* chooses the destination. The TAB and arrow keys move through the *
* list and the ESC key quits without changing the directory. *
*---------------------------------------------------------------------------*
* Developed by: Robert D. Reynolds RDR robber@netcom.com *
* Suggestions by: V. Phaniraj VP phaniraj@plains.nodak.edu *
* Henry So, Jr. HTS henryso@tasha.poly.edu *
* *
* The beginning: 07/07/92 RDR *
* v1.0: 07/10/92 RDR *
* v1.1: 07/11/92 RDR - Fixed bug with spaces in directory *
* names. *
* v1.2: 07/14/92 RDR - Uses more REXX internal functions *
* fixes bug when target was not found *
* and problem with $DIRCMD. *
* v1.3: 08/31/93 RDR - Fixed some bugs and added -S flag *
* VP - add immediate change to subdirectory *
* v1.4: 09/01/93 RDR - Made database a hidden file *
* HTS - change so database retains case *
* *
*===========================================================================*/