home *** CD-ROM | disk | FTP | other *** search
- /* CDO v1.01 [13-May-1995] for Directory Opus 5
- By Leo Davidson ("Nudel", P0T-NOoDLE/Gods'Gift Utilities)
-
- Note: Please don't confuse this with the OCD script!
-
- When run from a Shell, will echo the path used by the SOURCE Lister.
- Using an alias, this can be used as a command which CD's to the path
- used by the SOURCE lister.
-
- To set up the command "CDO", add the following to your s:shell-startup:
- -------------------------------------------------------------------------------
- Alias CDO "CD *"*`rx DOpus5:ARexx/cdo.dopus5*`*""
- -------------------------------------------------------------------------------
- */
- signal on error /* if "lister query..." fails, exit */
- options results
- address "DOPUS.1" /* Assumes there's only one copy. */
-
- lister query source /* Get handle of 1st SOURCE lister. */
- Ls_Handle = Word(RESULT,1)
-
- Lister Query Ls_Handle Path /* Get its path. */
- Say Strip(RESULT,B,'"') /* Echo result -> input of CD cmd. */
- Error:
- EXIT
-