home *** CD-ROM | disk | FTP | other *** search
- Sysop Information for
- SCANVERT.EXE
-
-
- Legal Stuff:
-
- I have no interest in making a buck for something that I did more to
- practice my Turbo Pascal programming (it's been years since I have done
- any TP programs), than anything else. So while I keep the source codes and
- the rights to this software, the executable file is released to the public
- domain. In no event shall I be held responsible for any loses or damages
- resulting from the use of this utility. It works at various test sites, and
- if you have doubts then you should not use it.
-
- History:
-
- This utility was done at the request of a few RA sysops that complained
- that there was not a decent archive converter for RA 2.00's Scan set up
- line. So I undertook the task of creating this little program. While RA can
- unarc and scan uploads on it's own and tell you if the archive is good, by
- checking the returned errorlevels, it can not convert the files to a
- different archive type, hence this utility comes in.
-
- Setup:
-
- In RACONFIG, under OPTION|FILES|UPLOAD SCAN enter the following on the
- command line for the scan utility:
-
- c:\ra\scanvert.exe @ ARJ *M
-
- The path must be edited to reflect the actual location of your copy of
- SCANVERT.EXE, and it can reside anywhere you wish. The '@' is translated by
- RA to the full path and filename of the file to process. The ARJ could be
- also ZIP,LZH,PAK,ARC,ZOO,HYP or SQZ and it denotes what type of archive you
- want the upload converted to. If you leave this blank or enter any other
- word not shown above, it will not perform any convertion. The *M is
- EXTREMELY IMPORTANT!, as SCAN.EXE and some archivers use lots of memory and
- problems including lost files could show up if you forget to swap RA out of
- memory.
-
- You must also set RA to take proper action if a file fails. SCANVERT will
- not move or delete any files that fail. RA must take care of that. If you
- set RA to move the files and neglect to make that area you set in there, RA
- will try to move them and delete them instead.
-
- Stuff:
-
- Scanvert operates along the following lines:
-
- 1.- Upon startup, it looks for the EXITINFO.BBS and DORINFO1.DEF
- in the current directory. If any of them is missing, it will
- abort. If both files are found, it retrieves system info from
- them.
-
- 2.- CONFIG.RA is read to determine system paths and general info
-
- 3.- A determination is made as to wether this is a real, remote
- caller or a local test and the FOSSIL driver is initialized
- if necessay.
-
- 4.- The command line is processed for the path of the line to handle
- and the archive type to convert to.
-
- 5.- The target filename is processed to determine the path and be
- able to search the FILES.RA for area info. Once the upload area
- is found, the number is kept in memory for future reference.
-
- 6.- The original archive type is determined and the proper archiver
- is searched in the path. The archiver default command lines are
- hardcoded, but that may change in future versions of this
- program. The following archivers are used:
-
- Extension Archiver(s)
- ARC PKPAK.EXE, PKUNPAK.EXE
- ARJ ARJ.EXE
- ZIP PKZIP.EXE, PKUNZIP.EXE
- LZH LHA.EXE
- ZOO ZOO.EXE
- PAK PAK.EXE
- SDN PAK.EXE
- SQZ SQZ.EXE
- HYP HYPER.EXE
- DWC DWC.EXE
-
- The latest version of all this programs are set up in the
- hardcoded list. I can not guarantee SCANVERT will work with
- older versions of these archivers. All programs must reside
- somewhere in the path. The current directory is NOT searched for
- programs.
-
- In addition for GIF files only, GIFTEST.EXE by Dave Navarro will
- be used, if found, to test the files. If an error is found in
- the gif file, a non zero errorlevel is returned.
-
- 7.- SCANVERT will swap itself to EMS if available or disk if EMS is
- not available, in order to give the archiver as much memory to
- work in as possible. If neither EMS or enough disk space is
- available the scanvert will abort.
-
- 8.- SCANVERT will create a temporary directory under the current
- directory and decompress the archive in that directory. PATHs
- are preserved. The SCAN.EXE program from McAfee Associates (C),
- is called to scan all files and any subdirectories created by
- the decompressor. If any errorlevel other than zero is returned
- by SCAN, the archive is deemed infected with a virus and
- SCANVERT will abort with a non zero errorlevel.
-
- 9.- If the virus test is good, then if you set a convert archive in
- the command line the files will be recompressed using that
- archiver. If it is already of that archive type, then the files
- are cleaned and the program ends with errorlevel zero.
-
- 10.- Providing no program has stopped with an errorlevel, all is
- well. Your file has now been converted from the original type to
- the type specified in the command line, taking an intermediate
- detour thru the scanner for viruses.
-
- 11.- At this point SCANVERT opens the RA's filebase header and index
- files and upgrades the file name and size to reflect the new
- archive type and size.
-
- 12.- SCANVERT will work in multinode systems provided they are
- installed as recommended by the RA docs. Each copy of SCANVERT
- MUST run from a separate subdirectory. So if line 1 is
- c:\ra\raline1 and line 2 is c:\ra\raline2, no conflict will
- occur. Scanvert opens all files in READ/WRITE/SHARE mode so it
- should run fine in networks and coexist with multiple copies of
- itself and RA. It never keeps a file open longer than ncessary,
- so it should cause little problems.
-
- Aknowledgments:
-
- My thanks to Ernie Jillson for his questions and encourament and his
- testing.
-
- Turbo Power Software for their excellent swapping units.
-
- Questions and suggestions can be sent to:
-
- Paul Schencke
- 1:135/340@fidonet or 1:135/58@fidonet
- 72066,2443@Compuserve.com
-
-