home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Current Shareware 1994 January
/
SHAR194.ISO
/
sys_util
/
ru103.zip
/
RU.DOC
< prev
Wrap
Text File
|
1993-08-12
|
15KB
|
315 lines
Ravitz Utilities 1.03
Miscellaneous Utilities for IBM/DOS systems
(C) Copyright Ravitz Software Inc. 1990,1993
Ravitz Software Inc. BBS/FAX 606-268-0577
P.O. Box 25068
Lexington, KY 40524-5068
USA Compuserve Cary Ravitz [70431,32]
Introduction ....................................................... 2
License 2
Installation ....................................................... 2
FLSIG 3
PIC2GL ............................................................. 5
AUTOPGL 6
ATKBFIX and ENKBFIX ................................................ 7
Compatibility and Technical Information 8
User Support ....................................................... 9
p-2
Introduction ---------------------------------------------------------
Ravitz Utilities (RU) is a collection of miscellaneous utilities.
FLSIG is a file signature program that lets you easily set up a disk
security test.
PIC2GL translates Lotus PIC files to HP-GL, which may then be
printed with PrintGL. You can print directly from PIC2GL if PrintCAD
is installed.
AUTOPGL runs in a window of a multitasking system such as DESQview
or Windows. It watches for the creation of plotfiles and when it
sees one it runs PrintGL on the file and then deletes it. To print a
plotfile from another application, just create a plotfile and
AUTOPGL will print it as an unattended background task.
ATKBFIX and ENKBFIX are TSRs that improve the ergonmics of AT and
Enhanced keyboards.
License --------------------------------------------------------------
RU is provided as is. There are no warranties expressed or implied.
You may use Ravitz Utilities without charge.
You may distribute RU if you keep the entire package together,
unchanged, including this license explanation, and do not charge
more than $10.
Installation ---------------------------------------------------------
The RU package consists of these files:
ATKBFIX.EXE AT Keyboard Fix
AUTOPGL.EXE Automatic PrintGL
ENKBFIX.EXE Enhanced Keyboard Fix
FLSIG.EXE file signature program
PIC2GL.EXE Lotus PIC to HP-GL translator
RU.DOC documentation
To install RU copy the distribution files to your working disk or
directory. Each of the .EXE files is a stand alone program and may
be copied individually.
RU.DOC is this manual. You can print it with "COPY RU.DOC PRN".
p-3
FLSIG ----------------------------------------------------------------
FLSIG is a utility that calculates five file signatures for any
file, or the partition record or boot record of a disk. This has two
uses. First, you can check four standard signatures against values
from other programs. These standard signatures are: file size,
checksum, CRC-16, and CRC-32. Second, and the true reason for FLSIG,
is to do a security check on critical files in your system. To help
with this, FLSIG has two features. First, the input/output format is
set up to let you easily create and run a security test .BAT file.
Second, the fifth signature is individualized by you via password.
There is no way for a person or virus to corrupt a file and then
compensate to produce the same signature, because the signature
algorithm is specified by your password.
To get a file signature from FLSIG, use this syntax:
FLSIG password filename ?
To get a signature for the boot record, use .bootrec[disk name] for
disks under 32 meg and .lgbtrec[disk name] for larger disks. For
example for C: use .bootrecc. To get a signature for the partition
record, use .partrec[physical fixed disk number]. For example, for
the first physical disk use .partrec1. The password is capitalized
by FLSIG so it is case independent. The result is:
FLSIG password filename size.checksum.CRC-16.CRC-32.pwsig
where pwsig is the signature resulting from your password.
To verify a file signature, use this syntax:
FLSIG password filename size.checksum.CRC-16.CRC-32.pwsig
This calculates the file's signature and compares it to the
signature that you entered. If they do not match then you are
prompted to press Enter or Esc to continue.
If it seems a bit difficult to verify a file from the command line,
don't worry - that is not the expected use. Here is how to use
FLSIG. Begin by preparing a list of file signatures on your disk and
saving the result to a .BAT file:
flsig password .partrec1 ? >>check.bat
flsig password .lgbtrecc ? >>check.bat
flsig password \io.sys ? >>check.bat
flsig password \msdos.sys ? >>check.bat
flsig password \command.com ? >>check.bat
flsig password \flsig.exe ? >>check.bat
flsig password anyfile ? >>check.bat
p-4
This creates the file CHECK.BAT. Now any time you run CHECK, each
file is signature checked against the original signature, with the
specified password. If you are concerned with other people using
your system, edit CHECK.BAT, replacing the password with %1. Then
run CHECK password. DOS replaces the %1 with the password as it runs
the .BAT file, and your password is not on the disk. You can add new
files to CHECK.BAT just like you first created it. You might want to
put CHECK.BAT and FLSIG.EXE on a personal floppy disk, to prevent
anyone from corrupting them.
The BAT file listed here generates CHECK.BAT based on a file mask.
For example call it with parameter *.* and it will generate
CHECK.BAT with checks for every file in the current directory
(except CHECK.BAT).
@echo off
if Z%1==Z goto exit
if Z%2==ZREENTER goto reenter
for %%F in (%1) do call flsigm %%F REENTER
goto exit
:reenter
if Z%1==ZCHECK.BAT goto exit
echo on
flsig PASSWORD %1 ? >>CHECK.BAT
@echo off
:exit
A good way to use FLSIG is to run a small number of tests in your
AUTOEXEC.BAT including critical operating system files:
.partrec1
.lgbtrecc
io.sys or ibmbio.com
msdos.com or ibmdos.com
command.com
and a more comprehensive test, including all commonly used .EXE,
.COM, .SYS, and .BAT files, after using any new software.
FLSIG makes no attempt to reconstruct files or fix problems. Its
only goal is to inform you of file corruption.
p-5
PIC2GL ---------------------------------------------------------------
PIC2GL reads a Lotus .PIC file and writes an equivalent HP-GL file.
This HP-GL file may be printed with PrintGL.
The syntax for PIC2GL is:
PIC2GL picfile hpglfile
Unlike Lotus Printgraph, which lets you select from a number of
fonts for each type of text, PIC2GL translates text into HP-GL
labels with no choice of font.
For direct printing from PIC2GL, install PrintCAD and use "PIC2GL
picfile PCAD".
LIMITATIONS
The translation has been verified on a limited number of files.
Characters are translated into HP-GL labels - there is no font
information included.
p-6
AUTOPGL --------------------------------------------------------------
AUTOPGL lets you set up a background plotter emulator in a
multitasking environment. With AUTOPGL running as a background task
under DESQview or Windows, you can print a plot by creating a
plotfile with the right name or copying a plotfile to the right
name. You must have PrintGL installed in your DOS PATH so that
AUTOPGL can call it as needed.
AUTOPGL uses the same calling syntax as PrintGL. AUTOPGL takes the
plotfile name or mask, and continuously looks for any files that
match and have a non-zero length. Sequentially written files have a
length of 0 until they are closed, so partially written files are
ignored. When such a file is found, it is renamed PLOT.TMQ (thereby
moving it to the current directory), and PrintGL is called with the
AUTOPGL parameters (the plotfile parameter is replaced with
PLOT.TMQ).
AUTOPGL should be started on the same disk as specified in the
plotfile mask because it cannot rename files across different disks.
Esc or Ctrl-Break stops AUTOPGL.
If you use a network and want to dedicate one PC to PrintGL, you do
not need a multitasking system. Run AUTOPGL from the DOS prompt. The
network software will take create the plotfiles as directed from
other PCs.
Always take care not to overwrite a plotfile before AUTOPGL has a
chance to work on it. As soon as AUTOPGL finds a new plotfile it
renames it, so that file cannot be overwritten. However while
PrintGL is working on the current file another plotfile may be
created and then overwritten.
p-7
ATKBFIX and ENKBFIX --------------------------------------------------
ATKBFIX is a TSR program that intercepts the keyboard interrupt. It
is intended for use on AT type keyboards and should be installed in
your AUTOEXEC.BAT. It has these effects:
Num Lock is set off.
Caps Lock, Num Lock, and Scroll Lock presses are disabled.
Alt Caps Lock, Alt Num Lock, and Alt Scroll Lock are functional.
The Esc and `/~ keys are swapped. You can change the key caps to
match on most keybords.
ENKBFIX is the same as ATKBFIX except that it does not swap the Esc
and `/~ keys.
LIMITATIONS
ATKBFIX and ENKBFIX cannot uninstall themselves.
Programs that take over the keyboard handling (such as Windows)
defeat these programs.
p-8
Compatibility and Technical Information ------------------------------
The algorithm used for FLSIG's password signature is:
file: array[1..n] of byte
sig: longint
pwi,i: integer
sig:=0; pwi:=1; password:=uppercase(password);
for i:=1 to filelength do begin
sig:=sig+file[i]*password[pwi];
pwi:=pwi+1;
if pwi>length(password) then begin
pwi:=1;
sig:=sig rotateleft 1
end;
end;
FLSIG's CRC-16 and CRC-32 algorithms are from C Programmer's Guide
to NetBIOS, by W. David Schwaderer.
FLSIG reads the partition record by calling interrupt 13h with ax=
201h, cx= 1, and dx= 80h + physical drive number - 1. FLSIG reads
the boot record on a small disk by calling interrupt hex 25 with ax=
drive name - 65, cx = 1, and dx = 0. FLSIG reads the boot record on
a large disk by calling interrupt hex 25 with ax= drive name - 65,
cx= -1, and beginning sector= 0.
FLSIG, PIC2GL, AUTOPGL, and ATKBFIX were written by Cary Ravitz and
compiled with Borland's Turbo Pascal 6.0.
p-9
User Support ---------------------------------------------------------
Correspondence about these programs may be sent via the support
bulletin board, fax, Compuserve, or mail.
BBS: 606-268-0577 1200..14400,N,8,1 24 hours/day
To ask a question, prepare an ASCII text file with the details of
your question. Then call the bulletin board and choose the upload
question option. XMODEM file transfer protocol is required for
this. Your question will be assigned a number (such as 1015) -
remember this number. An answer file (with the assigned number)
will be posted, usually within 24 hours on weekdays. To get an
answer, call the bulletin board, choose the download option, then
the answer option, and then enter the answer number.
Compuserve: Cary Ravitz [70431,32]
Fax: 606-268-0577
If your fax machine does not send the fax calling signal, the BBS
will answer and hang up (about 30 seconds), then the call is
routed to the fax. Faxes from outside the USA may be answered via
letter. The fax may be unavailable sometimes.
Mail: Ravitz Software Inc.
P.O. Box 25068
Lexington, KY 40524-5068
USA