...previous

CONCEPTION

For normal work of the Runner user must prepare the schedule of tasks.
This schedule has simple text format. Path and file name for the schedule can be placed in command line of the program. If the system registry used to launch Runner, you can use special program SETUP.EXE to define path and file name of the schedule. If no arguments in command line is specified, Runner will try to get schedule from the RCOMM.TXT, placed into the working directory of the program. Schedule file can be edited with any text editor as Windows "Notepad". Loading of the schedule is executed on start of the Runner, on 00:00 o'clock, also with schedule or manual.

Sample of Runner's command line,
schedule placed into file c:\schedule files\runner.rsc

"c:\Program Files\Runner\runner.exe" c:\schedule files\runner.rsc

If you launch second instance of the Runner, it will be shown message "Runner already loaded" and second instance will finish. If first instance of the Runner is hidden, it will be shown. To disable test of existing instance(s), use command line key /b as a first symbols of pathname of the schedule if it is in command line, or only this key, if schedule name is RCOMM.TXT. If schedule pathname contains whitespaces, conclude key and filename in inverted commas. Examples:

"c:\Program Files\Runner\runner.exe" /b
"c:\Program Files\Runner\runner.exe" /bc:\bats\runbat.txt
"c:\Program Files\Runner\runner.exe" "/bc:\Program Files\Runner\runbat.txt"
Key /b was designed to use Runner as interpreter of schedules as well as command file.

So far as command execution point consists of two parts (day and time), schedule file also hase double structure, as well as "INI" files. All schedule separates with sections. Headers of sections ( section name ) defines day to execute a command, and command lines define time and command to execute.
Thus, general view of the schedule is following:
; comment
[section 1]
command 1
command 2
........
command N
; comment
[section 2]
command N+1
command N+2
........
command N+M
........

First (or unique) schedule section may not have a header. In this case commands of such sections will be executed every time as well as commands of the ev section. It facilitates using Runner as command interpreter.

Note: it is recommended set as the last command of the schedule used as command file built-in instruction ex, in other case Runner will not finished after execution of the schedule. Example of such command file (filename is RCOMM.TXT):

~>me=Hello, world
+10>me=Good bye, world
+2>ex
Command line to execute it is following:
runner.exe /b

Runner can be loaded manual, however it is recommended to place shortcut to Runner into the Startup folder of the Main Menu, or to use included in the package program SETUP.EXE to install Runner into the system registry.

...next