home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / UPCHECK / THDPRO91.ZIP / THDFILES.TXT < prev    next >
Text File  |  1993-12-25  |  22KB  |  451 lines

  1.      THD ProScan Version 9.0 introduced a number of new features.
  2. Unfortunately, this also means the introduction of a number of new
  3. data files. Some of the newer features require you (the user) to create
  4. text files. Unfortunately the "form" of these text files is not entirely
  5. simple.
  6.      This text will attempt to give a reasonable explanation of the various
  7. files. I only hope that some of you understand this explanation well enough
  8. to assist others in your area.
  9.      All user created files discussed in this text will follow the following
  10. convention unless otherwise specifically noted.
  11. ONE ENTRY PER LINE.
  12. ALL CAPITAL LETTERS.
  13. EVERY LINE TERMINATES WITH A "HARD RETURN".
  14. (Ansi drawings are, of course, exceptions to these rules by definition.)
  15.  
  16. Covered in this text are...
  17.  
  18.      THE HACK LIST
  19.      THE COMMENT LIST
  20.      DATE AND TIME IN COMMENT
  21.      THDPRO.CRC (THE CRC LIST)
  22.      THDPRO.AN?
  23.      PAINSOFT.AN?
  24.      PAINSOFT.ANS
  25.  
  26.  
  27.      THE HACK LIST
  28.      -------------
  29.  
  30.      The "hack list" as explained in THDINSTL is a list of file names which 
  31. you do not want tested by THDPRO.EXE. This is the simplest of the lists to 
  32. create. This list will be a plain text file with one filename per line with 
  33. no extension or ".".
  34.      It may contain as many entries as you like. The "official" HACKLIST 
  35. "COL" and/or "IDX" files can be used as they are without modification.
  36. Or you may create your own or add to those lists in the following manner.
  37.  
  38. One "filename only" per line in capital letters followed by a hard return.
  39. The following would be acceptable.
  40.  
  41. VIRUS
  42. PKZIP2
  43. GARBAGE
  44. BS
  45.  
  46.      If the above were your list, then THDPRO.EXE would reject any file 
  47. called "VIRUS" regardless of it's extension. So VIRUS.ZIP, VIRUS.TXT, VIRUS. 
  48. and VIRUS.ARJ would all be rejected.
  49.      Likewise with the other names entered above.
  50.  
  51.  
  52.      THE COMMENT FILE
  53.      ----------------
  54.  
  55.      THD ProScan version 9.0 can randomly select a file comment from a list
  56. of files. This SAME list can also cause files in certain areas to be given a
  57. specific comment.
  58.      This will be useful for persons who wish to emphasize certain aspects
  59. of their BBS. You could for instance cause all files in your "programming"
  60. area to be marked with a comment file that tells people about your
  61. "Programming" conference and guidelines. Or perhaps you allow free download
  62. of BBS utilities and want to insert a comment in those archives to let
  63. people know that BBS Utilities are free on your BBS. Whatever your reason.
  64. the method is as follows.
  65.      To cause THDPRO.EXE to insert a specific comment in a specific area,
  66. you must select in THDINSTL to use a "list" of file comments. You must then
  67. create that list. In our example the file will be called "COMMENT.LST".
  68.      A "specific" comment line in this file will consist of...
  69.  
  70. "IF" {QUALIFIER} {COMMENT}
  71.  
  72. [note that the entire line must be capital letters]
  73.  
  74. A "qualifier" is a string of text which will be looked for in the path to
  75. the file being tested. It need not match the path exactly... But rather if
  76. the "qualifier" is contained in the path then it will be considered a match.
  77.      As an example. "C:" as qualifier would match every file in every
  78. directory on drive "C". (Since the text "C:" would be found in the path to
  79. any file on that drive). "C:\BBS" as a qualifier would match any file found
  80. in the "C:\BBS" directory or any of it's subdirectories.
  81.      And "C" as a qualifier would match EVERY path that has a "C" anywhere
  82. in it.
  83.  
  84.      A random comment will only be used when a matching qualifier is not
  85. found. To use ONLY random comments, simply make a list of headers with no
  86. "IF" or {QUALIFIER}.
  87.  
  88. Sample "COMMENT.LST"
  89.  
  90. IF   C:\BBS\DLS\PROGUTIL  C:\HEADERS\UTILHEAD.TXT
  91. IF   C:\BBS\DLS\BBSUTIL   C:\HEADERS\BBSHEAD.TXT
  92. IF   C:\BBS\NORATIO       C:\HEADER\FREE.TXT
  93. IF   C:                   C:\HEADERS\BBSAD.TXT
  94. IF   D:\MYUTILS           C:\HEADERS\MYHEAD.TXT
  95. IF   D:\SYSOP             C:\HEADERS\PERSONAL.TXT
  96. C:\HEADERS\RANDOM1.TXT
  97. C:\HEADERS\RANDOM2.TXT
  98. C:\HEADERS\RANDOM3.TXT
  99. C:\HEADERS\RANDOM4.TXT
  100. C:\HEADERS\RANDOM5.TXT
  101. C:\HEADERS\RANDOM6.TXT
  102. C:\HEADERS\RANDOM7.TXT
  103. C:\HEADERS\RANDOM8.TXT
  104. C:\HEADERS\RANDOM9.TXT
  105. C:\HEADERS\RANDOM10.TXT
  106.  
  107.      In the list above, the "IF"'s, qualifiers, and headers are separated in
  108. a column arrangement so that you can better distinguish them. This is for
  109. your benefit and is not required. They must be separated by at least a single
  110. space (although a column arrangement as shown above will also be
  111. acceptable as long as the entries are separated by "spaces", not by "tabs").
  112.      The "IF" statements must ALL be before the random selection list.
  113.      The lines without "IF" statements are comments which are to be chosen
  114. from at random when there are no matching qualifiers.
  115.  
  116.      When looking for a comment, THDPRO.EXE will look for the FIRST matching
  117. "qualifier" (that is the text following the "IF" statement above). In this
  118. regard a "match" is any qualifier which can be found in the path of the file
  119. being tested.
  120.      If the qualifier is contained in the path to the file to be tested,
  121. THDPRO.EXE will stop looking for a comment and use the first match.
  122.      In the above example you will notice that "C:" (the qualifier for the
  123. fourth line) is contained in each of the first four qualifiers. IF it were
  124. put as the first line, then THDPRO.EXE would use "C:\HEADERS\BBSAD.TXT" for
  125. every file on drive "C". Since "C:" would be found in any file in "C:\BBS".
  126.      So in this respect you must make sure that the order in which you place
  127. the qualifiers will not conflict with any later qualifiers. That is ... a
  128. qualifier must NEVER fully contain a qualifier which appears before it in
  129. the list. (ie. "C:\BBS\TEST" must appear before "C:\BBS" in the list).
  130.      IF THDPRO.EXE cannot find a matching qualifier it will chose at random
  131. a comment from the entries appearing without "IF" statements.
  132.      IF the comment chosen does not exist. THDPRO.EXE will insert the
  133. comment from the very first line in the list (even if it has an "IF"
  134. statement). IF the comment from the first line does not exist, no comment
  135. will be added.
  136.      The list is considered complete if a blank line is found, so no blank 
  137. lines should be in the list. If there is a blank line in the list, all text 
  138. following the blank line will be ignored.
  139.      The best "simple" method I can give for ensuring the correct order of 
  140. "IF" statements is to put them in alphabetical order from BOTTOM TO TOP.
  141. (that is... in reverse alphabetical order). Many word processors can do this 
  142. for you quickly and easily. And remember that the "IF" statements go first 
  143. and the order of the random comments is unimportant except that they be 
  144. after ALL "IF" statements.
  145.  
  146.      GOOD LUCK.
  147.  
  148. DATE AND TIME IN FILE COMMENT
  149. -----------------------------
  150.      A user asked if THD ProScan could allow the date and/or time of testing
  151. to be input into the file comment. Therefore in addition to the comment
  152. features mentioned above, THDPRO.EXE will "examine" the comment file
  153. before using it. IF it finds the text "%DATE%" or "%TIME%" in the file
  154. comment itself, the file will be copied to a temporary file and the "%DATE%"
  155. and/or "%TIME%" will be replaced by the actual date and/or time.
  156.      Note that the %DATE% and %TIME% must be capitalized.
  157.      This option will work no matter by what method the comment file is
  158. chosen. So the following file comment would appear in the finished archive
  159. as the second one following.
  160.  
  161. File comment as it exists on disk...
  162.   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  163.   █╒═══════════════╕█   This  archive was tested using THD ProScan Ver 9.0
  164.   █│  THD PROSCAN  │█   (c)1993 Painsoft on %DATE% at %TIME%.
  165.   █╘═════╕   ╒═════╛█
  166.   ▀▀▀▀▀▀█│ V │█▀▀▀▀▀▀   It successfully passed a test by
  167.         █│ E │█         McAfee's Viruscan V.107 which tests for
  168.         █│ R │█         2309 viruses, as well as TBScan v6.05 and
  169.         █│   │█         F-prot v209d (for heuristic testing).
  170.         █│ 9 │█         Enjoy the security of THD ProScan v9.0
  171.         █╘═══╛█         from "PainSoft".
  172.         ▀▀▀▀▀▀▀
  173. And as it would be inserted into an archive
  174.   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  175.   █╒═══════════════╕█   This  archive was tested using THD ProScan Ver 9.0
  176.   █│  THD PROSCAN  │█   (c)1993 Painsoft on 8/28/1993 at 09:27 am.
  177.   █╘═════╕   ╒═════╛█
  178.   ▀▀▀▀▀▀█│ V │█▀▀▀▀▀▀   It successfully passed a test by
  179.         █│ E │█         McAfee's Viruscan V.107 which tests for
  180.         █│ R │█         2309 viruses, as well as TBScan v6.05 and
  181.         █│   │█         F-prot v209d (for heuristic testing).
  182.         █│ 9 │█         Enjoy the security of THD ProScan v9.0
  183.         █╘═══╛█         from "PainSoft".
  184.         ▀▀▀▀▀▀▀
  185.      *** Specifically.. note the change to line 2 of each comment ***
  186.  
  187.  
  188.  
  189. THDPRO.CRC
  190. ----------
  191.  
  192.      Before reading this. Understand that THDPRO.CRC is created and updated
  193. by THDPRO.EXE and will NEVER "NEED" to be edited manually. In most cases I
  194. recommend against such editing.
  195.  
  196.      This text is supplied for those of you who wish to add files to the CRC
  197. list manually. The 32 BIT "CRC values" used in this list are identical to
  198. those reported by ARJ.EXE and PKUNZIP.EXE.
  199.  
  200. ** IMPORTANT **
  201.      Please note that this outline is supplied as a reference to the format 
  202. of the CRC file used by THD ProScan version 9+. This is the format created 
  203. by THDPRO.EXE and will be the only format understood for the processing.
  204.      File sizes are used to avoid checking "all" files for CRC. (if it's not 
  205. the right size, it's not the right file). The CRC file can be edited by any 
  206. text editor providing the "convention" laid out here is adhered to. 
  207. (Although I strongly recommend that you use THDPRO.EXE's "CRC" option to 
  208. build and maintain this list).
  209.      The placing of a file's size is extremely important. If the file is not 
  210. in the correct place (by size) all files past the one in the wrong place, 
  211. could be skipped. And the incorrectly placed entry may NEVER be checked.
  212.      File names are ONLY for the users reference and are not required. A 
  213. file of a given size with the given CRC will match regardless of its "name". 
  214. (If THDPRO encounters a file of the same size and CRC as one already in the 
  215. list, it will be considered to be the same file, regardless of its name).
  216.      The second ","(comma) is required to signal the end of the CRC value. 
  217. There are no known limits to the number of entries allowed in this file.
  218. Both list types CAN be used simultaneously to remove files. by inserting the
  219. full path to the names only file to be used as the first "0" length file and
  220. by selecting that option in THDINSTL. (If selected THDINSTL will create the
  221. file and insert (or change) the path to the names only list.)
  222.  
  223.  
  224. The CRC test list must be of the following format..
  225.      (all "letters" MUST be capitals).
  226.  
  227. * path to list of files to be removed by name only (OPTIONAL/ONE ENTRY)
  228.                                                    no wildcards allowed in
  229.                                                    this entry.
  230. * list of "0" lengths files
  231.                           (by name only).
  232.                           (Wildcards "?" and "*" are NOT allowed anywhere
  233.                            in this list). Only files with a size of "0" will
  234.                            be checked against this portion of the list.
  235.  
  236.    followed by
  237.  
  238. * "ENDZEROLENGTHFILES"
  239.                           (exact spelling and capitalization is imperative)
  240.    then
  241.  
  242. * list of CRC checkable files in the format...
  243.      "FILESIZE" (IN BYTES) "," "CRCSTRING" "," "FILENAME.EXT"
  244.      Filesize is checked first and if not found procedure is skipped.
  245.      If found CRC is checked. if identical then file is added to a list of
  246.      files to be removed (internal to the tester) else next file is
  247.      initiated until all files are checked.
  248.  
  249. Sample File list for removal by CRC.
  250.  
  251.                                    A list of files which are to be removed
  252. C:\UTILS\REMOVE.FIL         -----> based only on their names.
  253. KILL.TXT                    ----\  Contains "FILENAME.EXT" of names of "0"
  254. BULLSH.DOC                       > length files to be removed. MUST be all
  255. READTHIS.NOT                ----/  Capital letters.
  256. ENDZEROLENGTHFILES          -----> Indicator of no more "0" length files
  257. 1,49ACDFE3,FILENAME.EXT     ---\   Files MUST be listed smallest to largest.
  258. 12,156ED64D,FILENAME.EXT        \  List of Files in order of size,crc,name.
  259. 123,AB756F4F,FILENAME.EXT        > Each separated by a "comma".
  260. 1234,C7EAD84D,FILENAME.EXT      /  Name is for user's info only and is NOT
  261. 12345,325DEB65,FILENAME.EXT ---/   required. The second COMMA IS required.
  262.                             -----> Any blank line will be considered to be
  263.                                    the end of the file and no search will
  264.                                    continue past that point. The blank line
  265.                                    is not required. An EOF (as inserted by
  266.                                    dos) will also indicate the end of the
  267.                                    file.
  268.  
  269.  
  270.      THD PROSCAN'S CUSTOM ANSI
  271.      -------------------------
  272.  
  273.      THD ProScan version 9 has direct support for two types of sysop 
  274. supplied ANSI.
  275.      The first is an ANSI CORNER. An ansi-corner for the purposes of this 
  276. program will be considered a non-interactive ansi which will be displayed 
  277. during testing to the remote user in the upper left corner of his/her 
  278. screen. It can be 35 characters wide and 16 characters high.
  279.      Files of this type will be named THDPRO.AN?, where the "?" represents a 
  280. number from 1 to 9.
  281.  
  282.      The second ANSI is a full screen interface. It may use the entire 
  283. screen EXCEPT for the top two lines which are reserved by THDPRO.EXE for
  284. self identification purposes. This file is not a "true" ansi screen in that
  285. it will contain an ansi image and a number of "interaction lines" to be sent
  286. as required by THDPRO.EXE. These files will be called "PAINSOFT.AN?", where
  287. the "?" represents a number from 1 to 9.
  288.  
  289.      First, you must understand that THDPRO.EXE will search for these files 
  290. in numerical order and as soon as one is not found, it will be assumed that 
  291. no higher numbers exist. That is to say that if THDPRO.AN1 does not exist, 
  292. THDPRO.EXE will NOT search for other THDPRO.AN? files. If it finds 
  293. THDPRO.AN1, THDPRO.AN2 but not THDPRO.AN3, it will stop searching and assume 
  294. there are only the two "THDPRO.AN?" files to choose from. It will then begin 
  295. a search for the "PAINSOFT.AN?" files using the same rules.
  296.      Also, these "ANSI" files will ONLY be found IF they are located in the 
  297. same directory as THDPRO.EXE. (that is, the copy of THDPRO.EXE that is 
  298. actually performing the test). If they are not located in the same 
  299. directory, THDPRO.EXE will simply assume that they don't exist.
  300.      These (up to 18) additional files will be displayed at random along 
  301. with the 3 original screens internal to THD ProScan.
  302.  
  303.      THDDEMO.COM can be used to preview your ansi with the THD test screen. 
  304. Use this to see if your ansi will be displayed correctly to the remote users. 
  305. Typing "THDDEMO.COM" will show you the "traditional" THD Ansi screen. Typing 
  306. "THDDEMO.COM" followed by the path to YOUR ansi file will show you what your 
  307. ansi will look like to the remote user. THDDEMO.COM is purposely crippled to
  308. not properly display ansi which exceeds 70 characters per line. This is to
  309. ensure that your ansi will remain compatible with the majority of user's
  310. systems. If your ansi looks fine through the demo, it will almost definitely
  311. be fine on the remote end.
  312.  
  313. THDPRO.AN?
  314. ----------
  315.  
  316.      Your custom ansi's can use the top/right corner (a box 35 characters
  317. wide by 16 high). That portion of the screen will be left untouched when the
  318. test portion of the ansi is displayed immediately following. The acceptable
  319. co-ordinates for your ansi are bound by position "1,1" and "16,35". The rest
  320. of the display will be used by THDPRO.EXE.
  321.      The ansi "line length" cannot exceed 70 characters per line, or they 
  322. will NOT be displayed. The total number of lines is not important.
  323.      Note that the "Registered to BBSname" message is NOT displayed when a
  324. user defined ansi is used. This is done to free up that space for your use.
  325. You might want to keep that in mind when designing your ansi corners.
  326.  
  327.  
  328. PAINSOFT.AN?
  329. ------------
  330.  
  331.      First a note. The use of PAINSOFT.AN? is a delicate and involved
  332. process. If you do not understand the workings of ansi drawing (and the code
  333. itself) I suggest you not even attempt to use this file.
  334. This file will be a "complete" ansi test screen and NOT an ansi corner. It
  335. will contain a main body ansi screen, followed by a number of "data" ansi
  336. lines that will be displayed as discussed below. The format for a usable
  337. ansi of this format will follow the following conventions.
  338.      IT must not use the two top lines of the screen. These are reserved by
  339. THDPRO.EXE and will be rewritten immediately following each section of ansi
  340. from the user's file. In this way it will never be over written by the
  341. user's ansi.
  342.      The first "section" of the ansi file should contain the basic screen
  343. image which is to be sent to the user BEFORE testing begins (Usually a
  344. screen with blanks to be filled as testing proceeds).
  345.      The second section will be marked by a line (immediately following the
  346. "main" section) with only the text "ENDANSI" (IN CAPITAL LETTERS). This will
  347. signal the next series of commands are for filling in the test prompts.
  348. The next section will consist of 19 ansi strings each of which will indicate
  349. a certain process occurring. An optional final line can define the 
  350. foreground and background colours of the THD identification header.
  351. in order, they are...
  352.  
  353. indicator clearing line 1
  354. indicator clearing line 2
  355. the CRC test is starting
  356. the CRC test was passed
  357. the CRC test was failed
  358. the file is being expanded
  359. the file expanded okay
  360. the file did NOT expand okay
  361. the file is being virus scanned
  362. the file passed virus scanning
  363. the file failed virus scanning
  364. the work space is being cleared
  365. clearing of workspace is complete.
  366. expanding for conversion
  367. passed expansion for conversion
  368. failed expansion for conversion
  369. rearchiving for conversion
  370. passed rearchiving
  371. failed rearchiving
  372. foreground/background colour definition (optional)
  373.  
  374.  
  375.      None of these strings may exceed 70 characters.
  376.      The first two lines are for clearing the "indicators". If you are using
  377. "blocks" or other characters to display the testing, they should be "reset"
  378. or cleared before the testing of imbedded archives begins. These first two
  379. lines are for that purpose. These two lines could also be used to erase
  380. "text" and start again. They will be displayed immediately before the CRC
  381. test begins. There is no need to "clear" any of the "Fail" indicators as the
  382. testing would stop if any fail occurs. (with the possible exception of the
  383. SCAN failure which can be skipped if THDPRO.EXE is configured to pass
  384. heuristic failures). If you are not sure how to use them... leave them
  385. as empty lines.
  386.      The third string (The CRC test starting string) could also be used to
  387. clear the "pass" indicators (if the 2 indicator clearing lines are not
  388. enough). So that they will be cleared as the testing of internal files
  389. begins.
  390.      IF any of those strings is to be unused, a blank line MUST be entered
  391. in it's place. Imbedded testing will use the same indicators as the main
  392. file testing. So only one set of indicators will be required. (Unlike the
  393. internal ansi and ansi corners discussed above which have separate main and
  394. embedded indicators).
  395.      The final configurable string is an optional colour configuration for 
  396. the THD identification header (shown at the top of the screen when using 
  397. PAINSOFT.AN? files). The format for this line is "EXACTLY"...
  398.  
  399. FOREGROUND=# BACKGROUND=#
  400.  
  401. where "#" - represents the colour number according to the following
  402.  
  403. 0 = black
  404. 1 = red
  405. 2 = green
  406. 3 = yellow
  407. 4 = blue
  408. 5 = magenta
  409. 6 = cyan
  410. 7 = white
  411.  
  412.      0 (black) may be used as a background colour ONLY. Foreground colours 
  413. will always be high intensity and background colours will always be low 
  414. intensity. Both colours MUST be defined or the display will default to 
  415. YELLOW on RED. (foreground must be specified first).
  416.      The "TESTING - FILENAME.EXT" will always be high intensity white in the 
  417. header.
  418.      To "sample" the various headers available, THDDEMO now allows the use 
  419. of a parameter "/C". (This parameter must be "after" the filename on the 
  420. command line.) If this parameter follows the name of a PAINSOFT.AN? file it 
  421. will display the "main" ansi portion and sit. At this point you may scroll 
  422. through the various foreground and background colours by hitting either "F" 
  423. or "B". when you have decided on a combination that goes well with your main 
  424. body ansi, hit <ESC>. THDDEMO will then exit, clear the screen, and report 
  425. the foreground and background colours that were displayed just before you 
  426. exited.
  427.      ie. THDDEMO PAINSOFT.AN4 /C
  428. would display the PAINSOFT.AN4 ansi file with the THD ID header, from there 
  429. press "F" or "B" to change the foreground and/or background colours until 
  430. you find a combination that you like. Hit esc and it will display the 
  431. correct "colour definition line" to insert in the file to achieve the 
  432. colours that you have selected. (Note that this only works with PAINSOFT 
  433. files since the THDPRO files do not display the ID header).
  434.  
  435.      Ansi output (PAINSOFT.AN? and THDPRO.AN? files) should ALWAYS be tested
  436. using THDDEMO.COM before being used. THDDEMO will show you EXACTLY what the
  437. user will see and aid you in fine tuning your ansi files.
  438.  
  439. PAINSOFT.ANS
  440. ------------
  441.      PAINSOFT.ANS is a special case. If Found, PAINSOFT.ANS, will always be
  442. used instead of ANY other ansi.
  443.      Painsoft.ans follows the same creation and viewing guidelines as
  444. described above for PAINSOFT.AN? files. You may use this file to force the
  445. same output on every file test. While boring, I'm sure some of you will find
  446. it useful.
  447.  
  448.           SAMPLES OF BOTH OF THESE TYPES OF SCREENS ARE INCLUDED IN
  449.                                "THDANSI.ZIP"
  450.  
  451.