home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
filutl
/
fix220.arc
/
FIX.DOC
next >
Wrap
Text File
|
1989-08-13
|
10KB
|
262 lines
August 13, 1989
FIX - File Fix, Version 2.20 - This binary editor will allow you
to conveniently view and edit any type of file - read-only,
hidden or system - in ASCII or hex. Select files from a
scrollable, pop-up directory window. Version 2.20 adds two new
features: 1) a command to jump directly to a specified offset
within the file and 2) a simple text-search feature that will
take you to the next record containing the string for which you
are searching.
Contents:
=========
Purpose
Installation
Commands
Program background
Other programs
Closing remarks
Purpose:
========
For use on IBM PC's and compatibles to view and edit any type of
file, text or binary, read-only, hidden or system. Will not
extend the size of a file, only replace characters.
This program is especially useful for working with simple
random-record files (e.g. those created by BASICA/GWBASIC
programs).
This is FREE software. This program was written by me for my
personal use. However, if you or others also find it useful,
you may freely use it or pass it along. Please include this DOC
file if you do share it.
Installation:
=============
No special installation is necessary. Just copy the FIX.EXE
file to the disk from which you will be invoking the command.
It is suggested, however, that you copy this file to a directory
included on your PATH.
The default display mode is color. However, if you don't have a
color monitor and have trouble viewing the display, try using
the SET FIXCOLOR=OFF command. The SET command may be invoked
from the DOS prompt, although it will probably be more
convenient to include this command in your AUTOEXEC.BAT file.
Included in the distribution archive is SAMPLE.DAT, a sample
binary data file which includes all 256 possible characters in
numerical sequence (all of which are available for viewing in a
file with the exception of ASCII codes 0 and 255). Use it to
familiarize yourself with how the program displays characters.
Commands:
=========
Invoking the program:
---------------------
You may specify the file to view either from the command line or
from within the program:
Examples: fix
fix myfile.dat
fix c:\command.com
To invoke the pop-up directory at program start-up, specify
wildcards, an existing directory name or an existing drive on
the command line:
Examples: fix *.*
fix c:\mydir\
fix d:
[Tip: Specifying just a drive designation as in the last
example is useful even if you just want to see what files and
directories are on the disk and don't wish to view their
contents.]
Besides using the SET FIXCOLOR=OFF command as described in the
Installation section above, you may also use the "/b" switch to
invoke the program in black-and-white (BW) mode.
Examples of using the "/b" switch:
fix /b
fix/b c:\*.*
fix \autoexec.bat /b
There is also a /c option to override the SET FIXCOLOR=OFF
command to run the program in color.
Options entered at the command line will take precedence over
the FIXCOLOR environment variable.
[There is an "undocumented" feature to toggle the display
between color and BW mode. This is the <Alt-C> command issued
when at the main command prompt while viewing a file. This
feature was included to test the appearance of the display
during program development. It may or may not be supported in a
future release.]
When prompted for the name of the file to view, entering
wildcards, the name of a directory (usually terminated in a
backslash) or a drive designation will cause a directory window
to pop up. (Just pressing <Ret> without entering a filename is
equivalent to entering "*.*".)
When in the pop-up directory window, use <Up>, <Dn>, <PgUp>,
<PgDn> to move up and down a line or a page at a time. <Home>
will take you to the top window for that directory, <End>, the
bottom window. Pressing <Ret> on a file name will exit the
selection window and display the file. Pressing <Ret> on a
directory name will take you into that directory. <Esc> will
take you back to the filename prompt leaving the file
specification as you entered it.
Main program commands:
----------------------
Key Mnemonic Description Alternate Command Keys
--- -------- ----------------------- ----------------------------------
F1 Help Help screen H, 1
F2 Another Select another file A, 2
F3 Size Change record size S, 3
F4 Edit Edit displayed record E, 4
F5 Goto Select by record number G, 5
F6 First View first record F, 6, <Home>
F7 Prev View previous record P, 7, <Up>, <PgUp>, <Left>
F8 Next View next record N, 8, <Dn>, <PgDn>, <Right>, <Ret>
F9 Last View last record L, 9, <End>
F10 Quit Quit program Q, 0, <Esc>
Alt-F5 Select by file offset
Alt-F Find text
New commands:
-------------
<Alt-F5> will prompt for and take you directly to the record
containing a specific offset within the file [0..FileSize-1].
This is useful for quickly moving to a location specified by an
external program that generates offset information - DOS's own
COMP command, for example.
Pressing <Alt-F> will cause the program to prompt you for a
string of text to search for. The search starts from the next
record after the current record in the file. Once a search
string is specified, the program "remembers" it the next time
the <Alt-F> hot key is used, so you can find successive
occurrences of the same string by repeatedly pressing <Alt-F>
followed by <Ret>. The search is not case-sensitive so upper-
and lower-case alphabetic characters are handled equivalently.
Record-edit mode:
-----------------
When in record-edit mode, you may use the down arrow key to
"cursor down" to the hex level and edit characters by their hex
codes. The <Tab> key will take you quickly to the ends of the
rows. To save your changes after editing, press the <Enter>
key. You will be prompted for comfirmation. Use the <Esc> key
to abort changes made without saving them.
Editing of read-only files is allowed. After editing such a
file, the file attributes are left unchanged from before, except
that the archive bit is always set.
String edit:
------------
Whenever string input is requested in the program (indicated by
a highlighted input field), you may use the familiar editing and
cursor movement keys to edit your input (eg. <Ins>, <Del>,
<Home>, <End>, <Left>, <Right>, etc.). If a string has already
been entered, <Esc> will clear the input field. <Esc> pressed
on an empty field will exit the input function.
Cancelling an operation:
------------------------
When in doubt or you wish to cancel a feature, pressing the
<Esc> key will often work.
Program background:
===================
This program has evolved starting from my CP/M days, when I took
over the work of another programmer in maintaining a set of
BASIC programs that made extensive use of random-record data
files.
The original version of this program was written in Pascal
because it seemed the best tool for the job at the time. As I
progressed through different languages, I rewrote this tool a
number of times, each with little or no reference to previous
source code. Each resulting program thus had a flavor of its
own. The current series were written in JPI TopSpeed Modula-2.
Other programs:
===============
Other free programs which I have written and contributed to the
public domain are:
CAL100
------
CAL - Calendar V1.00 - 06/03/89 - A simple, stand-alone calendar
display program that can be used as a sort of perpetual
calendar. Valid years range from 0001 to 9999 (arbitrary).
This program is NOT memory-resident. Scroll through the
different months and years. Although the executable file is
stand-alone, I don't consider this a complete program. I've
contemplated using the included routines as the starting point
for a scheduling program, for example. Source code included.
CRC-M2
------
CRC-M2 - Cyclic Redundancy Checker V1.00 - 07/12/89 - This tiny
CRC program accepts wildcards and multiple filespecs from the
command line. Displays same CRC values as PKPAK and LHarc.
This type of program is usually written in assembly language.
In fact, I adapted the algorithms from some publicly available
assembly language routines. Source code included.
DDEL124
-------
DIRDEL - Directory Delete, Version 1.24 - 07/15/89 - This
program will delete an entire subdirectory trees - even those
containing read-only, hidden and system files and directories.
It will even delete the current directory. The executable file
for this version is significantly smaller than before. Source
code included.
FND106
------
FFIND - File Finder, Version 1.06 - 07/31/89 - This program will
find any file or subdirectory on your hard disk, including
hidden and system files.
Usage: ffind [d:][filename][.ext]
Wildcards are accepted. Improvements for this version include
an overall increase in speed and a smaller executable filesize.
Source code included.
All the above programs were written entirely in JPI TopSpeed
Modula-2 (assembly not required).
Closing remarks:
================
Interested users are encouraged to contact me with comments, bug
reports, suggestions and questions about the program. I can be
reached at the addresses below:
By conventional mail:
---------------------
Raymond T. Kaya
P. O. Box 1436
Honolulu, HI 96806
By electronic mail:
-------------------
CompuServe: 71230,2500
GEnie: R.KAYA1