home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
sysutl
/
ctrlalt.arc
/
RELEASE.DOC
< prev
Wrap
Text File
|
1986-04-17
|
3KB
|
62 lines
RELEASE.COM will create executable files which you can run
to remove resident programs. To use it, you must record the
"situation" BEFORE you load a resident program by entering
RELEASE <filename>
at the DOS command line. Here <filename> is any legal DOS file
name perhaps including a drive and path but WITHOUT an extension;
a file with this name and the extension '.com' will be created by
RELEASE. (RELEASE will beep if the filename is omitted or
illegal, and will overwrite an existing file if you enter a name
already in use.) For example, if at half past ten in the morning
you enter
RELEASE 1030AM
you will then find a file 1030AM.COM in your current directory.
You can then load GRAPHICS.COM, BULK.EXE, HULK.COM, PRINT.COM,
and seven other resident programs. If later that afternoon you
need to have this memory back, just enter 1030AM; the programs
are gone. (You can reinstall one or two of them if you wish, or
all of them, and continue to use 1030AM to remove them.)
You may use RELEASE several times in the process of loading
resident programs. I include the lines RELEASE \ETC\BASE at the
beginning and RELEASE \ETC\AEEND at the end of my AUTOEXEC.BAT
file. It is perhaps unnecessary to create these files BASE.COM
and AEEND.COM (in the directory ETC) every time I boot, but since
I not infrequently change my AUTOEXEC.BAT and/or CONFIG.SYS
file, I have found it more convenient to just let these lines
stay there.
To see how much of your RAM memory remains at any time, use
the DOS command CHKDSK; the last displayed line contains this
information. You can then experiment by running RELEASE to
create POINT1.COM, say, loading some resident programs, and
running CHKDSK before and after using POINT1.
RELEASE works by making a copy of the interrupt vectors
stored at the very beginning of the computer's memory (a resident
program will change one or more of these), and recording the
current location at which programs load in the '.com' file it
makes; these interrupt vectors are restored when that '.com' file
is run and then the memory allocated to any resident programs
(loaded after the creation of the '.com' file) is released to
DOS. The details are contained in the accompanying assembly
source code.
A note of caution: Suppose you enter RELEASE POINT1, load
resident programs A, B, and C, and then enter RELEASE POINT2. If
you use POINT1.COM at some time, you should NOT use POINT2.COM--
you may want to erase it. Since POINT2 would try to restore the
situation when A,B, and C were loaded, it would lead to a crash
if you ran it, unless you previously installed A, B, and C again
in EXACTLY the same place. Normally, A, B, and C will load in
the same location, but not if, for example, you've changed the
environment or load them from a batch file. To ensure a valid
file, it would be best to enter RELEASE POINT2 again after you
load them.