The field 'Folder' of table 'archive' serves to store the information in which folder a specific file (image file) can be found. The folder number is managed by the system. The last, i.e. most recent folder number is managed in table 'parameter'. There the field 'Name' has an entry 'ArchivOrdner'. The number found there is the currently used folder number.
In principle each document is allocated the current folder number when the document is being created. The folder number refers to the corresponding archiving folder. Example: if document 84 shows folder number 10, it will be archived in folder 'ARCH0010' if the previous documents have found room too.
Important for the archiving process are the following additional entries in table 'parameter':
In 'ArchivMByte' one can determine how many MByte are to be saved in a folder (e.g. 600 MByte), in 'ArchivDateien' one can specify the maximum number of files (e.g. 2000 files) that are allowed in a folder.
In the following we give two examples.
First example: For the moment we do not know if document 84 can still be archived in folder 10 (name: ARCH0010). Currently, folder '10' is made up of 25 MBytes and 1789 files. The field 'ArchivDateien' shows 1800 files, our document 84 possesses 14 pages. Together with document 84 folder 'ARCH0010' would contain 1803 files. That is the reason why a new archiving folder with the name 'ARCH0011' is created and the current folder number goes up to 11.
Second example: Up to and including document 83 there are 1500 files in folder 'ARCH0010'. The folder consists of 589 MBytes, document 84 contains 220 files and is made up of 44 MBytes. Also in this case document 84 would be finally saved in archive folder 'ARCH0011'.