Subversion Repositories SvarDOS

Rev

Rev 467 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
447 mateuszvis 1
 
2
                    === SvarCOM implementation notes ===
3
 
4
 
5
=== Batch files support ======================================================
6
 
7
When SvarCOM executes a command, it checks first if it has a *.BAT extension.
8
If so, it switches into 'batch-mode':
9
 - allocates a batch 'node', which is a memory area that contains the
10
   path and filename of the batch file, as well as the number of the "next
11
   line to be executed".
12
 - the batch node is attached to the batch chain (a pointer owned by rmod) if
13
   the batch file was CALLed from within another batch file, and replaced the
14
   current batch if it was simply executed from another batch file.
15
 
16
When the rmod batch pointer is non-NULL, SvarCOM does not ask the user for a
17
command. Instead, it opens the batch file, jumps to the "line line to be
18
executed" and loads the command from there, incrementing "next line" in the
19
process. The maximum length of a batch file is of 65535 lines (any lines after
20
this limit will be ignored).
21
 
22
 
23
====================================================================== EOF ===