home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
DATABASE
/
RACONT.ZIP
/
INDEX.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-14
|
3KB
|
85 lines
echo off
echo FAST CONTEXTUAL SEARCH SYSTEM
echo Copyright (c) Edward Guy P.Eng CDP 1987/8/9/90/91
if exist rcntxerr.lst del rcntxerr.lst
if not "%1" == "" goto cont2
echo No input files specified
echo No input files specified>>rcntxerr.lst
goto abort
:cont2
if not exist outfile.dct goto continue
echo OUTFILE exists "%1" etc will be merged with it.
echo should you not want this, please press [ctrl][C]
echo to terminate, and delete or rename the old OUTFILE.*
attrib -r outfile.*
pause
goto next
:continue
if exist %1 goto cont4
echo Can't find %1
echo Can't find %1>>rcntxerr.lst
goto abort
:cont4
if exist outfile.dct attrib -r outfile.*
if exist outfile.dct del outfile.*
cls
indbat %1 outfile -+\/,.!()[]{};:'=
if errorlevel 3 goto abort
if"%2"=="" goto finish
shift
:next
if exist %1 goto cont3
echo Can't find %1
goto abort
:cont3
if exist infile1.dct attrib -r infile1.*
if exist infile1.dct del infile1.*
rename outfile.* infile1.*
cls
indbat %1 outfile -+\/,.!()[]{};:'=
if errorlevel 3 goto abort
if exist infile2.dct attrib -r infile2.*
if exist infile2.dct del infile2.*
rename outfile.* infile2.*
cls
rename infile1.txt outfile.txt
attrib -r outfile.txt
mergbat infile1 infile2 outfile
if errorlevel 3 goto abort
cls
attrib -r infile1.*
del infile1.*
attrib -r infile2.*
del infile2.*
if "%2"=="" goto finish
shift
goto next
:finish
copy licence.pgf outfile.pgf
cls
speedind outfile
rem if errorlevel 3 goto abort
attrib -r outfile.*
if exist p!.1 del p!.*
cls
goto final
:abort
echo .
echo RUN ABORTED DUE TO ERRORS - DO NOT USE OUTFILE.* FILES
:final
attrib -r outfile.*
echo ╔════════════════════════════════════════════════════════════════════════╗
if exist rcntxerr.lst echo ║ ERRORS OCCURRED DURING THE RUN TYPE RCNTXERR.LST FOR DETAILS ║
echo ║ The files to run with Racontex are named OUTFILE.* and you may invoke ║
echo ║ it by RACONTEX OUTFILE. ║
echo ║ The next time you run this indexer it will merge the new file with ║
echo ║ OUTFILE.* if those files exist. ║
echo ║ You may rename OUTFILE.* to any other name. ║
echo ║ e.g. you may give the command RENAME OUTFILE.* LIBCAT.* ║
echo ║ and invoke RACONTEX LIBCAT. ║
echo ║ If you later want to merge other data onto LIBCAT you must first ║
echo ║ RENAME LIBCAT.* OUTFILE.* (after the run you may again ║
echo ║ RENAME OUTFILE.* LIBCAT.*) ║
echo ╚════════════════════════════════════════════════════════════════════════╝