


   **********************************************************************
   *                                                                    *
   *                             CDR 1.15                               *
   *                                                                    *
   *                         by Luca Carminati                          *
   *                                                                    *
   **********************************************************************
  
 


Introduction
ŻŻŻŻŻŻŻŻŻŻŻŻ
CDR is an AmigaDOS script for changing the current directory through a file
requester. It also accepts options which allow you to 'Dir' or 'List' the
directory you select or to assign it to any logical device (it can be useful
for testing a new program without installing the files contained in that
directory). Another option lets you revert to the directory you previously
selected without opening the file requester. In the end, you have the
possibility to launch an executable file selected from the file requester.



System requirements
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
CDR requires Kickstart 3.0+, the AmigaDOS Execute, FileRequest, Dir, List,
Assign and Eval commands in the C: directory, and the asl.library in the
LIBS: directory.



Installation
ŻŻŻŻŻŻŻŻŻŻŻŻ
To install CDR, simply copy the script to any directory of your choice (I
suggest the S: directory).

Note: make sure the script has the 'S' protection bit set.



Usage
ŻŻŻŻŻ
CDR can be started from a Shell window in one of the following ways:

   CDR            = A file requester appears. Select the directory you want
                    to become the current directory.

   CDR D          = The directory selected from the file requester, besides
                    becoming the current directory, is also 'Dir'ed.

   CDR L          = The directory selected from the file requester, besides
                    becoming the current directory, is also 'List'ed.

   CDR A          = The directory selected from the file requester is added
                    to the assignment having the name of the directory
                    itself. For example, if you select the
                    'Work:Temp/SupaGaim' directory, it will be added to the
                    'SupaGaim:' assignment.

   CDR A <dev>    = The directory selected from the file requester is added
                    to the assignment specified by <dev>.

   CDR AS         = The directory selected from the file requester is
                    assigned to the logical device having the name of the
                    directory itself (all previous assignments to that
                    device are replaced).

   CDR AS <dev>   = The directory selected from the file requester is
                    assigned to the logical device specified by <dev> (all
                    previous assignments to that device are replaced).

   CDR AR         = The directory selected from the file requester is
                    removed from the assignment having the name of the
                    directory itself.

   CDR AR <dev>   = The directory selected from the file requester is
                    removed from the assignment specified by <dev>.

   CDR AL         = The directory selected from the file requester is added
                    to the LIBS: assignment (the same as 'CDR A LIBS:').

   CDR AD         = The directory selected from the file requester is added
                    to the DEVS: assignment (the same as 'CDR A DEVS:').

   CDR AF         = The directory selected from the file requester is added
                    to the FONTS: assignment (the same as 'CDR A FONTS:').

   CDR P          = Reverts to the directory you previously selected (in
                    this case, the file requester is not opened). If you
                    changed directory without using CDR, it reverts to the
                    last directory you selected.

   CDR X [<args>] = Allows you to launch an executable file selected from
                    the file requester. You can also specify the arguments
                    for the executable by using the <args> option. If you
                    have to specify more than one argument, include them all
                    in quotes; i.e. 'CDR X "arg1 arg2 arg3 ..."'.



Author
ŻŻŻŻŻŻ
   Luca Carminati
   Via Fratelli Urbani, 1
   24016 San Pellegrino Terme (BG)
   ITALY

   E-mail: toffi@spm.it

If you think CDR is useful, let me know by sending me a postcard or an
e-mail message.



Acknowledgements
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
I must thank Chris Eburn for tricks and suggestions.



History
ŻŻŻŻŻŻŻ
   1.0  - First release.

   1.1  - Added the 'D', 'L', 'AL', 'AF' and 'P' options.

   1.11 - There were problems with path names including space characters.
        - Added the 'AD' option.

   1.12 - Changed the title of the file requester from 'Select File' to
          'Select a directory'.
        - Some other minor changes.

   1.13 - Added the 'A' option.
        - Some other minor changes.

   1.14 - Now the 'A' option allows you to add the directory you select from
          the file requester to the assignment having the name of the
          directory itself.
        - Now the 'P' option allows you to revert to the last directory you
          selected in case you changed directory without using CDR.
        - Some other minor changes.

   1.15 - Now the current directory is no more changed when using the 'A',
          'AL', 'AD' and 'AF' options.
        - Added the 'AS', 'AR', and 'X' options.
        - Some other minor changes.

