mutil_import_files.bbs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mutil_import_files.bbs [2016/03/25 04:28] – [Importing FILES.BBS] g00r00 | mutil_import_files.bbs [2023/01/03 01:58] (current) – IMPORT_FILES.BBS Stanza added desc_wrap avon | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | MUTIL can import various formats of FILES.BBS into Mystic BBS using options configured in the supplied .INI file. | + | MUTIL can import various formats of FILES.BBS into Mystic BBS using options configured in the supplied .INI file. If can also synchronize the file size/ |
- | Note that in the examples configurations below, | + | //For more information on the general usage of MUTIL see the [[mutil_howto|How |
+ | ===== IMPORT_FILES.BBS Stanza ===== | ||
- | ===== Example | + | ^ OPTION NAME ^ DEFAULT / EXAMPLE |
+ | | filesbbs | ||
+ | | uploader_name | uploader_name=Mystic BBS | This option defines the name used in the Uploader field in the database. | ||
+ | | update_files | update_files=false | If set to TRUE, the importer will compare the size of the file on disk with what is in the database. | ||
+ | | delete_after | delete_after=false | If set to TRUE, the importer will delete the files.bbs file after processing. | | ||
+ | | desc_first | desc_first=0 | This option defines how the first line of the description is parsed. | ||
+ | | desc_wrap | desc_wrap = true | If you are importing a files.bbs that has a filename and description on a single line Mystic will word wrap the description at 50 characters when enabled. | | ||
+ | | desc_char | desc_char=%%|%% | This option defines the character that signifies an extended description line. A blank value means a space character. | | ||
+ | | desc_start | desc_start=3 | This option defines the column where the DESC_CHAR is found. | ||
+ | |||
+ | ===== Example | ||
+ | |||
+ | The following section shows various FILES.BBS formats and their .INI configuration that was used to successfully import each format. | ||
+ | |||
+ | ==== Format | ||
+ | |||
+ | This FILES.BBS format has a fixed description on the first line at column 34, and each description line is determined by a pipe character at column 32. An example entry looks like this: | ||
+ | < | ||
+ | MYFILE.ZIP | ||
+ | | This is another one | ||
+ | | And so is this | ||
+ | </ | ||
+ | |||
+ | The minimal .ini file for MUTIL would be configured like so: | ||
+ | < | ||
+ | [General] | ||
+ | Import_FILES.BBS = true | ||
+ | [Import_FILES.BBS] | ||
+ | desc_first | ||
+ | desc_char | ||
+ | desc_start | ||
+ | </ | ||
+ | |||
+ | ==== Format #2 (?) ==== | ||
+ | |||
+ | This FILES.BBS format has the first line of the description directly after the file name without a fixed character position. | ||
+ | |||
+ | < | ||
+ | MYFILE.ZIP | ||
+ | This is another one | ||
+ | And so is this | ||
+ | </ | ||
+ | The minimal .ini file for MUTIL would be configured like so: | ||
+ | < | ||
+ | [General] | ||
+ | Import_FILES.BBS = true | ||
+ | [Import_FILES.BBS] | ||
+ | desc_first | ||
+ | desc_char | ||
+ | desc_start | ||
+ | </ | ||
+ | |||
+ | ==== Format #3 (GT Power, Others) | ||
This FILES.BBS format has no description on the first line and each description line is determined by a pipe character at column 3. An example entry looks like this: | This FILES.BBS format has no description on the first line and each description line is determined by a pipe character at column 3. An example entry looks like this: | ||
< | < | ||
- | TEST1.ZIP | + | MYFILE.ZIP |
| This is a test file description | | This is a test file description | ||
| And this is the second line | | And this is the second line | ||
</ | </ | ||
- | The INI [Import_FILES.BBS] stanza | + | The minimal |
< | < | ||
- | filesbbs | + | [General] |
- | uploader_name | + | |
- | update_files | + | [Import_FILES.BBS] |
- | desc_first | + | desc_first |
- | desc_char | + | desc_char |
- | desc_start | + | desc_start |
- | delete_after | + | |
</ | </ | ||
- |
mutil_import_files.bbs.txt · Last modified: 2023/01/03 01:58 by avon