home *** CD-ROM | disk | FTP | other *** search
- BatchMaster.doc BatchMaster v.1.27 07/24/91
-
- 1) Installation
-
- It is an easy task to install BatchMaster; you just copy BatchMaster
- file to the directory you want to, for example, the "c/"directory.
- There is nothing else to do, except to ensure you have arp.library
- in your "libs/" directory, since BatchMaster will not work without
- arp.library.
-
- 2) Usage (BatchMaster arg1 arg2 arg3 arg4)
-
- To use BatchMaster, you must create command script file. If you are
- completely green with script files, you can follow the instructions
- step by step:
- - Load your favorite text editor.
- - Type in command script. For example,
-
- BatchMaster kidding no_kidding bmdemo
- echo "If this text gets out, there is an error!"
- echo "Refer to file BatchMaster.doc."
- lab kidding
- echo "Just kidding!"
- skip batchend
- lab no_kidding
- echo "No kidding!"
- skip batchend
- lab bmdemo
- echo "This is a command script that demonstrates BatchMaster"
- lab batchend
-
- is a non-useful command script that uses BatchMaster. This command
- script should be found at name "BatchMaster.demo".
-
- - Type "execute <command_script_name>" to run the command script. If
- you are working with Shell, you can run the program directly without
- the command "execute", if the bits s and e of the command script
- file are set. You can use the command "protect" to set these bits.
-
- As demonstrated in BatchMaster.demo command script, BatchMaster uses
- its arguments as names of labels where jump to. That´s why you have to
- have a line "lab arg" if you have line "BatchMaster arg .." in your
- command script file. Otherwise, if the user selects the option "arg",
- and there isn´t line "lab arg", BatchMaster causes an error.
- Currently, BatchMaster can only jump forward.
- Examples:
-
- example1
- ...
- BatchMaster arg1 arg2 arg3
- ...
- lab arg1
- ...
- lab arg2
- ...
- <eof>
-
- If the user selects arg3, BatchMaster stops into an error. To correct
- the bug we have to either remove arg3 from line "BatchMaster arg1
- arg2 arg3", or we have to add line "lab arg3", according to situation.
-
- example2
- ...
- lab arg1
- ...
- BatchMaster arg1 arg2
- ...
- lab arg2
- ...
- <eof>
-
- BatchMaster can jump only forward, so to prevent error we have to
- move line "lab arg1" after line "BatchMaster arg1 arg2".
-
- BatchMaster does not recognise a gadget if it does not have an
- argument. If no arguments are given, BatchMaster gives an option
- to escape from BatchMaster by clicking the upper left gadget.
- BatchMaster uses argument ? as special argument. The user can type
- the argument name from his/her keyboard.
-
- I´ll hope you enjoy this program!
-
- Janne Pelkonen
-