home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PCBOARD / WIPEV073.ZIP / DIRMOD.DOC next >
Text File  |  1994-03-18  |  12KB  |  258 lines

  1.  
  2.                ┌───────────────────┬───────────────────┐
  3.                │                   │        ────────   │
  4.                └─────┐       ┌─────┤        ────────   │
  5.                      └───────┘     └───────────────────┘
  6.  
  7.           ───═══╡          Thrust Brothers            ╞═══───
  8.  
  9. PROGRAMM        DIRMOD [TP701] V0.27ß
  10.  
  11. INTRO     DIRMOD is used by several Thrust Brothers production and therefor
  12.           u have to insert it to a dir in path to make the TB productions
  13.           work well. U dont need to understand the function of the program
  14.           just follow the install function of the TB production.
  15.           If you like it to use it for your needs, read the following DOC.
  16.           Herein you find the install procedure and the how-it-work info.
  17.  
  18. WHAT IS IT
  19.           DIRMOD changes/modifies a given filelist (PCB format) with
  20.           given data.
  21.  
  22. 1: add files (doesnt check if bin or txt files!!) to a given filelist
  23.    (even if the currently accessed filelist is being used by other nodes!!)
  24.    syntax is
  25.  
  26.    DIRMOD DRIVE:\PATH\FILELIST
  27.  
  28.    first it search for filelist, and if exist, it searchs for
  29.  
  30.           DRIVE:\PATH\FILELIST.ADD
  31.  
  32.    to merge it to filelist....so if u use it for your needs, just copy
  33.    the to be add file to your path where the filelist can be found and
  34.    start dirmod, or just add dirmod to your $$LOGOFF.BAT file e.g.
  35.  
  36.    DIRMOD F:\PCB\MAIN\IBM
  37.    DIRMOD F:\PCB\MAIN\AMIGA
  38.    DIRMOD F:\PCB\MAIN\PORN
  39.  
  40.    for each list one line!!!,..so if DIRMOD find now IBM.ADD or AMIGA.ADD
  41.    it will merge it to the list...
  42.    you can add whatever you like to, coz dirmod just ADD, not check for data
  43.    the .ADD file have to be in the same dir as the fielist, coz DIRMOD
  44.    just add to given path/filelist the extension .ADD (or .MOD) and access it
  45.    so fielist like PC.DIR wont function...same for .MOD access
  46.  
  47. 2: second function is to replace data in filelist with new data
  48.    (WIPE needs it to replace faked files in filelist with changed info)
  49.    this function is called right after the upper rout, so u dont
  50.    need to start id twice for the second function, DIRMOD scans the path
  51.    where the given filelist is for a file named filelist.MOD, e.g. for upper
  52.    example if DIRMOD finds IBM.MOD or AMIGA.MOD in given path, it tries to
  53.    replace given data with found data
  54.    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  55.    Due to the fact, that adding needs some milsecs and changing data the
  56.    need of scanning whole filelist, the second function only works if
  57.    no access is running to given filelist. but doesnt matter, coz if
  58.    DIRMOD cant change data coz of access of other node, it will try to change
  59.    it next time if dirmod is being called (maybe next logoff or whatever)
  60.    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  61.  
  62.  .ADD and .MOD files will be deleted after succeded change/modify so if
  63.  .MOD couldnt be inserted to filelist (due to access error), it stays online
  64.  until DIRMOD is possible to insert in to filelist....
  65.  
  66.  SYNTAX OF .MOD files.....
  67.  
  68.  well with dirmod u can do almost all changes you need, if you pay attention
  69.  to syntax to .MOD files....
  70.  e.g. let this be a part of given filelist, called: PC
  71.  
  72. SUP308.ZIP      12250  03-01-94  Technical Support Bbs's
  73.                                | @X09Uploaded by:@X0F System
  74.                                |
  75. VIDIO120.ZIP    11165  03-01-94  BIOS-DOS-ANSI text mode video benchmarks
  76.                                | Compatible with SVGA/VGA/EGA, snow-free CGA
  77.                                | and MDA/HGC+ adapters, PC and PS/2 machines.
  78.                                | @X09Uploaded by:@X0F System
  79.                                |
  80. LOSTSPAC.ZIP   776535  03-01-94  PC SECTION + LOST IN SPACE + 9th Place at
  81.                                | The Party III GUS ONLY MADE IN FRANCE
  82.                                | @X09Uploaded by:@X0F Lord Cyrix
  83.                                |
  84.  
  85. now DIRMOD checks for two kinds of matches...let us exchange vidio120.zip
  86. ok
  87. 1: PC.MOD contains only
  88.  
  89. VIDIO120.ZIP    11165  03-01-94  Thats only a test.....
  90.                                | @X09Uploaded by:@X0F System
  91.                                |
  92. after you called: DIRMOD PC the final PC should look like that
  93.  
  94. SUP308.ZIP      12250  03-01-94  Technical Support Bbs's
  95.                                | @X09Uploaded by:@X0F System
  96.                                |
  97. VIDIO120.ZIP    11165  03-01-94  Thats only a test.....
  98.                                | @X09Uploaded by:@X0F System
  99.                                |
  100. LOSTSPAC.ZIP   776535  03-01-94  PC SECTION + LOST IN SPACE + 9th Place at
  101.                                | The Party III GUS ONLY MADE IN FRANCE
  102.                                | @X09Uploaded by:@X0F Lord Cyrix
  103.                                |
  104.  
  105. you see, dirmod checks the fist 34 chars of clueline in .MOD file
  106. and if match in filelist, it will kill all following lines
  107. until a new filename is found and replace the data with all lines
  108. found in .MOD file until new block
  109. PAY attetion a .MOD file like this only:
  110.  
  111. VIDIO120.ZIP    11165  03-01-94  Thats only a test.....
  112.  
  113. will not replace only this line but all lines until next filename:
  114.  
  115.  
  116. SUP308.ZIP      12250  03-01-94  Technical Support Bbs's
  117.                                | @X09Uploaded by:@X0F System
  118.                                |
  119. VIDIO120.ZIP    11165  03-01-94  Thats only a test.....
  120. LOSTSPAC.ZIP   776535  03-01-94  PC SECTION + LOST IN SPACE + 9th Place at
  121.                                | The Party III GUS ONLY MADE IN FRANCE
  122.                                | @X09Uploaded by:@X0F Lord Cyrix
  123.                                |
  124.  
  125. DIRMOD can handle more than one entry in :MOD file, so e.g. this .MOD file
  126. will change all found data...e.g. this will change all thre file descripts:
  127.  
  128. CSETM004.ZIP  2347606  03-01-94  Tools v.2.0 CSD CT0004 for tool component C
  129.                                | User Interface !only for C++ Set v2.0!
  130.                                | @X09Uploaded by:@X0F Diamond Brain
  131.                                |
  132. DIR_VLA.ZIP      7931  03-01-94  [ASM] Several usefull sources in ASM for DOS
  133.                                | operations. From VLA.
  134.                                | @X09Uploaded by:@X0F Diamond Brain
  135.                                |
  136. DOOMLD.ZIP      80991  03-01-94  DOOMLOAD v1.5 update! Sets up network games
  137.                                | easier and makes gameplay more fun for
  138.                                | network users and single players by adding a
  139.                                | "sudden Death" feature that plops you on a
  140.                                | random level in a random episode. Now
  141.                                | supports creating/playing back of your own
  142.                                | LMP movies. Better "bug-free" support for
  143.                                | Quicknet play. Quicknet password feature
  144.                                | keeps out unwanted players. Choose starting
  145.                                | episode and level! Also, play-logging for
  146.                                | network games (100% Netware compatible)!
  147.                                | @X09Uploaded by:@X0F Diamond Brain
  148.                                |
  149.  
  150. you only have to pay attention in use with DIRMOD, that data to be changed
  151. should be in date/order...newer files MUST come after old one
  152. coz DIRMOD changes sequentially dtata and cant jump backward if found
  153. older data in .MOD file (yes it's codeable, but will cost too much
  154. time to jump around filelist to chnage randomly found data in .MOD file!!!)
  155.  
  156. do that will not function
  157.  
  158. filenam1.zip      size  03-08-94  blabla
  159.  
  160. filenam2.zip      size  03-05-94  blabla
  161.  
  162. filenam3.zip      size  03-09-94  blabla
  163.  
  164. DIRMOD will change filenam1 and filenam3 but not filenam2, coz after changing
  165. filenam1 it arrived at 03-08-94 and in a normal filelist should date be
  166. sequential not randomly sorted!!! (except ALPHA 2010 :)) well dude I dont
  167. know, why u chose to sort your filelist alphabetically?!?!?!
  168. anyway....
  169.  
  170. well the prob is, after changing data, and renaming the fielist.bak file
  171. to filelist back, it deletes .MOD file and the unchanged fielnam2 stays
  172. unchanged!!!...it's in your way to use it efficiently...
  173.  
  174. the second match is like that...
  175. if .MOD file contains that:
  176.  
  177.  |VIDIO120.ZIP    11165  03-01-94  BIOS-DOS-ANSI text mode video benchmarks
  178.                                | Compatible with SVGA/VGA/EGA, snow-free CGA
  179.                                | and MDA/HGC+ adapters, PC and PS/2 machines.
  180.                                | @X09Uploaded by:@X0F System
  181.                                |
  182. the finoshed filelist will look like that....
  183.  
  184. SUP308.ZIP      12250  03-01-94  Technical Support Bbs's
  185.                                | @X09Uploaded by:@X0F System
  186.                                |
  187.  |VIDIO120.ZIP    11165  03-01-94  BIOS-DOS-ANSI text mode video benchmarks
  188.                                | Compatible with SVGA/VGA/EGA, snow-free CGA
  189.                                | and MDA/HGC+ adapters, PC and PS/2 machines.
  190.                                | @X09Uploaded by:@X0F System
  191.                                |
  192. LOSTSPAC.ZIP   776535  03-01-94  PC SECTION + LOST IN SPACE + 9th Place at
  193.                                | The Party III GUS ONLY MADE IN FRANCE
  194.                                | @X09Uploaded by:@X0F Lord Cyrix
  195.                                |
  196.  
  197. well you will ask, whatfor, well, the WIPE ppe (FAKER PPE) use this function
  198. to mark files as faked, coz after the change the line is colored
  199. like normal txt line in filelist, so it's the best
  200. way (hope so) to mark fakes, with changeing colors in filelist.
  201. if you scroll such filelist, this line doesnt look like other normal lines
  202. so u see it instantly that something is 'unnormal' with this file!!!
  203. we use that syntax for marking fakes....(seems to be better as only chagening
  204. the size for a 'DELETED' string....
  205.  
  206. e.g. vidio is a fake..so after faking, the filelist will look like that
  207. (prepare your fielist with such a line and scroll it in PCBOARD, u will see
  208. the difference)
  209.  
  210. SUP308.ZIP      12250  03-01-94  Technical Support Bbs's
  211.                                | @X09Uploaded by:@X0F System
  212.                                |
  213.  |VIDIO120.ZIP    11165  03-01-94  BIOS-DOS-ANSI text mode video benchmarks
  214.                                | @X0FFAKE - DOUBLE U/L
  215.                                | @X09Faked User:@X0F System
  216.                                |
  217. LOSTSPAC.ZIP   776535  03-01-94  PC SECTION + LOST IN SPACE + 9th Place at
  218.                                | The Party III GUS ONLY MADE IN FRANCE
  219.                                | @X09Uploaded by:@X0F Lord Cyrix
  220.                                |
  221.  
  222. anway..feel free to do what you like...this second match function only works
  223. if you shift the lien right for 2 position and add in front a ' |' string
  224. in words (space + pipe) :).....
  225.  
  226. in case that you might think that dirmod can fake up your fielist, dont worry
  227. a .BAK file is created before changeing data...
  228.  
  229. There are some messages being displayed to you while working
  230. e.g.
  231.  
  232. c:\DIRMOD C:\PCB\MAIN\PC
  233. WARNING! No addfile found, nothing to do!
  234. WARNING! No modfile found, nothing to do!
  235.  
  236. c:\
  237.  
  238. that means, dirmod accessed PC in \pcb\main and couldnt found PC.MOD and PC.ADD
  239. in same dir....
  240. if one of this line is missing, DIRMOD found the file and changes data...
  241.  
  242.  
  243. Special to Butterball/Phil(WOW) and all DV/SHARE.EXE user:
  244. I've tested this proggy with SHARE.EXE and know that it works under DV
  245. so dont tell me, that it wont work!!!...<grin>...
  246.                                                           Haegar Thrust
  247.  
  248. LAST WORDS:
  249.          OK, thats all for now..if you have probs email
  250.          PHIL THRUST on your favourite BBS or dudes like
  251.          WERNER&TARDY or BUTTERBALL, they can pass me your mail
  252.          and maybe the solution to your problem back to you.
  253.  
  254.          Thrust Brothers are HAEGAR THRUST and PHIL THRUST
  255.          (Thanks to EGO for coding parts of this proggy)
  256.                                                                 The System
  257.  
  258.