home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 160.lha / CMS.doc < prev    next >
Text File  |  1988-04-27  |  2KB  |  59 lines

  1.  
  2.    CMS 2.0           - ] Mike SCARY Scalora [ -            PLink: SCARY
  3.  
  4.    This MODULE is public domain.   Freely distributable as long as this
  5.    notice stays in.
  6.  
  7.    This program was originally uploaded to PeopleLink's Amiga Zone.  The
  8.    Amiga Zone has well over 3000 members, and a library of thousands of
  9.    public domain files.  If you're interested in joining us, call
  10.       800-524-0100 (voice)
  11.    or 800-826-8855 (modem).
  12.  
  13.    2.0 - 11/28/87  - ] Mike SCARY Scalora [ -
  14.          Put in MAIN (saves space (allocates global vars on stack))
  15.          Took out RunTimeErrors
  16.          Took out WriteInt, not used
  17.          Added checking for CTRL-C
  18.  
  19.    This arc file contains a program called CMS.  CMS is a program from
  20.    VM that writes execs (batch files).  The syntax of CMS is:
  21.  
  22.    CMS [ > batchfile ] [ pattern [ path ] ]
  23.  
  24.    Where:  pattern   - is a *-? filename matching pattern (like MS-DOS).
  25.            path      - is a path to a directory/device.
  26.            batchfile - is the name of the batch file that CMS will create.
  27.  
  28.    CMS let's you use wildcards with programs that don't use them.
  29.    It's hard to explain how CMS works, so I'll just show you an example
  30.    of how it would be used.  If I had a bunch of files in my current dir
  31.    that I wanted to run UNARC on.  All of the files have the '.arc' ending.  
  32.    Here how to do it:
  33.  
  34.    CMS >MyBatchFile *.arc   
  35.    EXECUTE MyBatch UNARC
  36.  
  37.    This would run UNARC on all the files with the '.arc' ending on RAM:.
  38.    If you didn't want to see any of the messages from UNARC, you could use:
  39.  
  40.    EXECUTE MyBatch "UNARC >NIL:"
  41.  
  42.    The first argument goes before the filename and the second goes after
  43.    the filename. Try this one at home:
  44.  
  45.    EXECUTE MyBatch "ECHO *"" "is an arc file!*""
  46.  
  47.    The batch file that CMS creates would look like this:
  48.  
  49. .key arg1,arg2
  50. ; Created by CMS 1.0   - ] Mike SCARY Scalora [ -  PLink:SCARY
  51. ; pattern used       : '*.arc'
  52. ; directory searched : ''
  53. <arg1> SCIMPI.arc <arg2> 
  54. <arg1> SCIMPIM2.arc <arg2> 
  55. <arg1> DODGE.arc <arg2>
  56. <arg1> CMS.arc <arg2>
  57.  
  58.    and so on.
  59.