home *** CD-ROM | disk | FTP | other *** search
-
-
- OCDFAM V1.01
-
- Copyright 1993
-
- = By =
-
- Trevor B Roydhouse
-
- All Rights Reserved
-
-
-
- OVERVIEW
-
- Usage:
-
- OCDFAM -s nn -e nn -an name -at "title" -dp path -cf filename
-
- -s nn Start areas at number nn
- -e nn Last area number to create
- -an name Area name for area change command
- -at "title" Area title eg "SIMTEL-20 CD ROM"
- -dp <path> Download path for files.bbs directories
- -cf filename Filearea.ctl filename
- -nodir Do not create the directories (see below)
-
- Note:
-
- OCDFAM needs a file called DIRS.CD which contains the result
- of a "dir z:\cdrom > dirs.cd" after removing all non-directory
- lines. The directory names in this file are used to create
- similarly named directories on your hard disk in the specified
- download path for the relevant files.bbs files. This version
- for Opus 1.73a.
-
- Safety feature:
-
- OCDFAM will display its settings and ask you to press C to
- Continue or any other key to exit BEFORE it does anything.
-
-
- CREATING THE FILES.BBS DIRECTORIES ON YOUR HARD DISK
-
- OCDFAM can be used to create the directories on your hard disk
- to contain the FILES.BBS files which OFARE will use to add the
- CD-ROM files to your Opus files database. To do this, OCDFAM
- needs a directory listing which looks like this:
-
- BBS <DIR> 05-20-92 6:35a
- GAMES <DIR> 05-20-92 6:35a
- MSDOS <DIR> 05-20-92 9:34a
-
- Such a listing is easily created by using the DOS "dir"
- command and DOS redirection. For example:
-
- dir z:\ > dirs.cd
-
- might yield:
-
- Volume in drive Z is SIMTEL_0692
- Directory of Z:\
-
- BBS <DIR> 05-20-92 6:35a
- DIRS TXT 8107 05-20-92 9:36a
- GAMES <DIR> 05-20-92 6:35a
- INDEX TXT 572669 05-20-92 6:08a
- INDEX Z 253141 05-20-92 5:15a
- INDEX ZIP 235893 05-20-92 5:15a
- MSDOS <DIR> 05-20-92 9:34a
- PKUNPAK EXE 15112 05-04-92 1:58p
- PKUNZIP EXE 23528 05-04-92 1:58p
- PKZIPFIX EXE 9224 05-04-92 1:58p
- README TXT 3532 05-20-92 9:58a
- 11 file(s) 1121206 bytes
- 0 bytes free
-
- You need to remove all non-directory and blank lines so that
- the above would look like:
-
- BBS <DIR> 05-20-92 6:35a
- GAMES <DIR> 05-20-92 6:35a
- MSDOS <DIR> 05-20-92 9:34a
-
- The filename used for the file containing the above should be
- DIRS.CD.
-
- OCDFAM will create the directories from this file by default.
- If you do not want the directories created, then use the
- -nodir command line argument. Note: the DIRS.CD file must
- exist because it is also used to create the file area
- definitions (see below).
-
-
- CREATING THE FILE AREA DEFINITIONS FOR BBS.CTL
-
- OCDFAM uses the information supplied on the command line to
- create area definitions for the CD-ROM directories contained
- in the DIRS.CD file (see above for how to create this file).
-
- -s nn Start areas at number nn
-
- This specifies the first area number to be used for the new
- file area definitions. It should not conflict with your
- existing file area numbers.
-
- Note: if the control filename you are using is that of your
- existing file area control file, this number must be greater
- than your current highest file area number. So, if you have
- areas 1-100 and you send newly uploaded files to area 999 and
- you are adding areas 200-294, you should consider using a
- different control file name and then merging the control file
- containing the new file area definitions with your old one in
- the appropriate place.
-
- -e nn Last area number to create
-
- This specifies the last area number to be used for the new
- file area definitions. It should not conflict with your
- existing file area numbers.
-
- -an name Area name for area change command
-
- This specifies the name to be given to the file area for use
- at the A)rea change command on the F)ile menu. Note: the name
- is treated as a "stem" to which is added the file area number.
- For example, if you specify -an SIM with -s 100 and -e 120,
- the area names generated will be SIM100, SIM101, SIM102 etc on
- up to SIM120.
-
- -at "title" Area title eg "SIMTEL-20 CD ROM"
-
- This specifies the title to be given to all the file areas. I
- find it useful to use the name of the CD-ROM for this. You
- could of course go through and replace each of these with
- something more descriptive ... if you have the time :-)
-
- -dp <path> Download path for files.bbs directories
-
- This specifies the directory off which you wish to have OCDFAM
- create the new file area directories matching the CD-ROM
- directories. For example, if you specify c:\cdfiles, then
- OCDFAM would create directories named:
-
- c:\cdfiles\bbs
- c:\cdfiles\games
- c:\cdfiles\msdos
-
- These directories are used to store the FILES.BBS for each CD-
- ROM directory on your hard disk. Note: the FILES.BBS should
- contain the filenames preceded by the CD-ROM path to each
- file. For example,
-
- z:\bbs\file.1 This is file 1
- z:\bbs\file.2 This is file 2
- etc.
-
- -cf filename Filearea.ctl filename
-
- This specifies the control file name to which to add the new
- file area definitions.
-
- Note: do not use BBS.CTL as the filename or everything after
- the END FILE AREAS line will be overwritten with the new file
- area definitions!
-
- If you use a separate file area control filename like
- fileareas.ctl, make sure you do not specify a starting area
- number with the -s option that is lower than your highest
- existing file area number. Otherwise NACL will laugh at you
- later :-)
-
- See the "Opus 1.70 Sysop Operations Manual" for details on
- splitting your BBS.CTL file up into separate files for message
- areas, file areas etc.
-
-
- THE FILE AREA DEFINITIONS
-
- Unfortunately, the new file area definitions created will not
- be exactly what you want as they use a default template which
- is customised for my system. All is not lost! I suggest you
- use your trusty wordprocessor to do a find/replace on the
- items which you wish to change. Here's a sample of the area
- definition produced by OCDFAM (the items you will not want to
- change because you control them with OCDFAM are asterisked):
-
- %
- * AREA 1 SIM1
- %
- % MENU <Number>
- SECTION I
- * TITLE SIMTEL-20 CD-ROM
- % PREFILES
- %
- ACCESS PRIV Disgrace
- % ACCESS LOCK
- %
- DOWNLOAD PRIV Worthy
- % DOWNLOAD LOCK
- * DOWNLOAD PATH d:\opus\BBS\
- %
- % BARRICADE
- % RULES
- % PICTURE
- % HELP
- RATIO PRIV Twit
- %
- % Default Upload Area
- UPLOAD PRIV Disgrace
- % UPLOAD LOCK
- UPLOAD PATH N:\NEWFILES\
- UPLOAD AREA 9999
- NEW PRIV Disgrace
- % DUPES
- % FREE
- %
- %
- % PRIVATE Upload area by Privilege
- PUPLOAD PRIV Twit
- % PUPLOAD PATH
- PUPLOAD AREA 9999
- %
- %
- % PRIVATE Upload area by Keys
- % KUPLOAD LOCK
- % KUPLOAD PATH
- KUPLOAD AREA 9999
- %
- %
- % APPLICATION
- %
- %
- END AREA
- %
- %
- END FILE SECTION
- %
-
-
-
- STEPS FOR UPDATING THE FILES DATABASE
-
- 1. Run OCDFAM and merge/add the new file area definitions to
- your BBS.CTL or FILEAREAS.CTL file. Find/replace items in
- the new file area definitions which you need to change to
- suit your system.
-
- 2. Create the appropriate FILES.BBS in each of the new file
- area directories OCDFAM created on your hard disk.
-
- If you have the good luck to have a CD-ROM which has
- existing FILES.BBS type files in a separate CD-ROM
- directory, then you can quickly copy them to your hard disk
- directories with a command like the following (this works
- for Night Owl disks: run it from the \text CD-ROM
- directory):
-
- for %1 in (dir*) do copy %1 c:\cdfiles\%1\files
-
- This relies on the fact that the dir001a files are in the
- same order as the directories on the CD-ROM and on your
- hard disk. You still need to add the full path to the files
- listed in these FILES files. The following QBASIC or
- GWBASIC program will speed this up. It reads a line from
- FILES and writes it out with the path prefixed to each
- entry to FILES.BBS:
-
- 10 CLS : KEY OFF : Z$ = "files"
- 40 LINE INPUT "Enter the PATH ONLY to the actual files (include final backslash): "; FILPAT$
- 50 INPUT"How many spaces over do the descriptions begin";SKIP:IF SKIP=0 THEN 65
- 60 LINE INPUT"What character is used to begin multi-line descriptions (default is |): ";DELIM$
- 65 IF DELIM$ = "" THEN DELIM$ = "|"
- 70 INPUT "Is the above correct"; AN$: IF LEFT$(AN$, 1) <> "Y" AND LEFT$(AN$, 1) <> "y" THEN RUN
- 100 OPEN "i", 1, Z$: OPEN "a", 2, "FILES.BBS": Y$ = FILPAT$
- 110 IF NOT EOF(1) THEN LINE INPUT #1, A$ ELSE CLOSE : SYSTEM
- 120 Z = INSTR(A$, DELIM$): IF Z <> 0 THEN 200
- 130 IF FLAG = 1 THEN FLAG = 0
- 140 PRINT #2, "": IF SKIP = 0 THEN 142
- 141 Z = INSTR(A$, " "): A$ = LEFT$(A$, Z - 1) + " " + RIGHT$(A$, (LEN(A$) - SKIP))
- 142 PRINT #2, Y$ + A$ + ""; : GOTO 110
- 200 Z = INSTR(A$, DELIM$): A$ = RIGHT$(A$, LEN(A$) - Z): PRINT #2, A$; : FLAG = 1: GOTO 110
-
- NOTE: It must be run from the relevant directory on your
- hard disk which contains the FILES file to be modified. I
- use the following batch file (FIX.BAT) to speed up the
- process:
-
- @ECHO OFF
- REM I guess gwbasic c:\opus\utils\stripper.bas would also work
- qbasic /run c:\opus\utils\stripper.bas
- REM ncd is Norton's Change Directory program
- ncd
- REM Chance to Control-C here and get out of the loop :-)
- pause
- REM loop forever
- fix
-
- For the Walnut Creek CD-ROMs, I have modified the 2OPUS.EXE
- program and batch files to add the filepath automatically
- when creating the FILES.BBS files. Look for the archive
- OWALNUT.ZIP.
-
-
- 3. Run NACL.
-
- 4. Run OFARE.
-
-
- BUGS/MITES/SUGGESTIONS
-
- OCDFAM has been extensively tested on the Sentry BBS with no
- apparent ill effects. Should you discover what you suspect is
- a bug, or even just a mite, or have any suggestions for the
- program feel free to:
-
- a) send a netmail message to me at the Sentry BBS or Sentry's
- Shadow BBS (FidoNet Addresses: 3:711/401 and 3:711/501);
-
- b) call the Sentry BBS on (02) 428-4687 (PEP/V32 modem) or
- Sentry's Shadow BBS (02) 418-6682 (V32bis modem) and leave
- me a message;
-
- c) write to me at P.O. Box 1605, Macquarie Centre,
- New South Wales 2113, Australia.
-
-
- LICENSE
-
- All Sysops are hereby authorised to use and/or distribute
- OCDFAM.EXE provided only that (1) no money is charged for
- either its use or distribution and (2) it is distributed
- together with this document file and (3) it is used in a
- lawful and friendly manner. WOC on.
-
-
- DISCLAIMER OF LIABILITY
-
- The author expressly disclaims any and all liability to any
- person in respect of anything, and of the consequences of
- anything, done or omitted to be done by OCDFAM.EXE. Be warned:
- Slippery when wet!
-
-
- LATEST VERSION
-
- The latest version of OCDFAM may always be Wazoo or Bark File
- Requested from Sentry (3:711/401 - PEP/V32 modem) or Sentry's
- Shadow (3:711/501 - V32bis modem) outside of the Zone 1 mail
- hour and the Zone 3 mail hour (plus and minus 1.5 hours). File
- requests for the magic filename OCDFAM will always result in
- your obtaining the latest version.
-
-