home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 52 / af052sub.adf / newlist.lha / NewList / Scripts / BackUp < prev    next >
AmigaDOS Script File  |  1993-07-16  |  593b  |  22 lines

  1. .key from/a,to/a
  2. ; Primitive backup utility, but a neat example of what newlist can do.
  3. ;
  4. ; finds files that needs to be backed up...copies them....and changes the
  5. ;  protection bits to being archived.
  6. ;
  7. ; insert a -h flag if you do not want all the verbose output.
  8.  
  9. if exists <to>
  10.    if exists <from>
  11.         echo ""
  12.         echo "Making backups to <to>"
  13.         nl <from> -[iHtE "copy \'%P\' to <to> \n protect \'%P\' arwed quiet"
  14.        else
  15.            echo "ERROR: <from> does not exist!"
  16.            echo ""
  17.       endif
  18.    else
  19.       echo "ERROR: <to> does not exist!"
  20.       echo ""
  21.    endif
  22.