AMIGA TIPS #4   8 Jan 86    Earl Hamner
=======================================
* To enable CLI from Preferences:
  Click 'on' then SAVE

  Open System
    Drag the CLI icon onto the Preference window.  Click the CLI icon.
  You only do this once on your backup copy of WORKBENCH.

* To read disk directories from CLI:
  Open CLI
  If drive zero then type CD DF0:
  If drive one then type CD DF1:
  If RAM drive one then type CD RAM:
    Type DIR
         INFO
         LIST

  To read sub-directories type:
    CD <sub-dir name>:
    LIST

  To go back to the disk dir type:
    CD DF1:

* To print a file to the screen type:
  TYPE file name <opt h>
  Note: C-Basic files won't make any sense

* To get 80 col text in ABasiC:
  SCREEN 1,4,0
    Screen x,y,z
      x = 0 or 1; 40 or 80 cols
      y = number of screens deep
          5 screens = 32 colors @
          4 screens = 16 colors
          3 screens =  8 colors
          2 screens =  4 colors
          1 screen  =  1 color
      z = Beginning of Hires screen
          0   = Top of screen
          93  = middle of screen
          185 = bottom (forget it!)
      @ You did add the 256k memory, didn't you?

* ABasciC Screen, border, text colors
  rgb 0,x,y,z rem screen
  rgb 1,x,y,z rem text
  rgb 2,x,y,z rem border
     x,y,z= 15,00,00 = red
            00,15,00 = green
            00,00,15 = blue
            15,15,15 = white
            00,00,00 = black

CLI mode:
* To copy a file between 2 drives:
  COPY DF0:filename  DF1:

* To copy an entire subdirectory:
  DF0:subdirectory DF1: ALL

* To copy an entire disk:
  DISKCOPY DF0: to DF1:

* Help with some CLI commands:
  COMMAND ?

* Gargling voice?  Get out of 80 column
  screen mode:
  SCREEN 0,4,1

* To make ramdisk:
  copies 'c' dir from Workbench disk to ram to save switching disks with
  a single drive.  Should have 256k extra memory.
    Open CLI then type:
      makedir     ram:c
      copy df0:c  ram:c
      assign c:   ram:c

  In fact, the newly created ramdisk can contain any file.  You
  must have memory space for the files in the ramdisk AND executable memory
  space as well.
      copy df1:filename ram:c

* To create batch files in the CLI edit mode:
      ed s:filename
      Enter CLI commands
      Usee editor commands to modify text
      Exit edit mode with ESC X <cr>.

  Example: Create ramdisk, copy 'C' and 'S' directory from df0 to
  ramdisk.  The filename for this could  be 'makeram'.  Your file will be 
  saved in the WORKBENCH 's' directory.  A new window will be created by the
  'ed' command just for entry of CLI comands.

    ed s:makeram   (new window appears)
      makedir ram:c
      copy df0:c ram:c
      copy df0:s ram:c
      assign c:  ram:c
    ESC X <return> (exit editor mode)

  To view the 's' directory
    cd s:
    list
  To run this file type
    cd df0:  (or ram:)
    cd s:
    execute makeram

* A batch file to copy disks:
    ed s:backup
      copy df0: to df1:
    ESC X <return>

  Now anytime you need to copy a full disk just type
    cd df0:
    cd s:
    execute backup

  If you already have executed  'makeram' then type
    cd ram:
    cd s:
    execute backup
  You will be prompted to insert source and blank disks.

* The CLI commands can be renamed by you.  'Execute' can be renamed to  'do'.
    cd df0:  (or ram: but won't be permanent)
    cd c:
    rename c:execute to c:do

  Now run your files like this:
    cd df0:  (or ram:)
    cd c:
    do makeram
    do backup

* To instruct AMIGADOS to send a copy of a file on disk to the printer:
    copy myfile to prt:

* To instruct AMIGADOS to run commands in the background use RUN:
    run copy myfile to prt:
    run sort

* To print files with linefeed but without carriage return:
    prt raw:

* DOS logical device conventions:
Name  DESCRIPTION        DIRECTORY
SYS   System root dir    :
C     Command library    :c
L     Library directory  :l
S     Sequence library   :s
libs  Open library calls :libs
devs  Open device calls  :devs
fonts Loadable fonts     :fonts
      Temporary workspace :t

* If you have a hard disk (DH0) and  you want to copy the system files
  then issue the following:
     assign sys:     dh0:
     assign c:       dh0:c
     assign l:       dh0:l
     assign s:       dh0:s
     assign libs:    dh0:libs
     assign devs:    dh0:devs
     assign fonts:   dh0:fonts

* If hard disk drive = DH0 then floppy disk drive = DF0

