home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
INFO
/
IINFO53.MSA
/
PROGRAMS_RAMLOAD.DOC
< prev
next >
Wrap
Text File
|
1991-07-11
|
5KB
|
163 lines
RAMLOAD
Kevin Cheung
DISCLAIMER
The programmer cannot be held
responsible for any damage that may
occur from the use of this program.
However, it is highly unlikely that
there will be any damage/loss of data
from using RAMLOAD. Still, I've got to
cover myself! If you are in doubt then
don't use it.
This program is copyrighted although you
are free to copy and distribute it so
long as it is not sold for profit and
all the files remain intact and
unaltered.
The files you should have are :-
Ramload.Prg - the program itself
Ramload.Inf - data file used by Ramload
Ramload.Doc - this text file
The reason I wrote this program was to
eliminate any tedious file copying when
using an autobooting ramdisk. I use
Eternal (a great reset proof ramdisk)
which must be in the Auto folder. I also
used to use a program called UPLOAD for
automatic copying of files from floppy
to ramdisk during boot up. Using Upload
from the Auto folder meant no mouse
clicking but when a crash/reset
occured, UPLOAD would run regardless of
the fact that the files were already
there. What I wanted was a program that
would automatically copy any specified
files into the ramdisk ready for me to
start programming, I also wanted to
leave it in the Auto folder so it would
run automatically. Another requirement
was to be able to prevent it from
running after a soft reset since the
files would already be in the ramdisk.
It was then that I wrote RAMLOAD to
solve these problems.
You can run Ramload from the desktop
although for convenience it is best to
keep it in the Auto folder. The program
expects to find a file detailing the
files to be copied in the Auto folder or
the root directory. This file must be
called Ramload.Inf and it is just a
simple ASCII text file.
Here is an example Ramload.Inf file :-
!C: the drive identifier
#MACROS copy from a folder
MACROS\GEMDOS.S copy GEMDOS.S from the
MACROS folder
GENST2.PRG copy file from root
MONST2.PRG ditto
MONST2.TOS ditto
REBOOT.TOS ditto
DESKTOP.INF ditto
The first line specifies which drive is
the ramdisk in this case drive C:. To
specify a drive an exclamation mark is
used followed by the drive letter eg
!D: means drive D: is the ramdisk (note
the colon after the drive letter).
Each program that you want copying to
the ramdisk must be on a seperate line
and all letters must be in UPPER CASE
(see the above example). If you want
to copy files from a folder then you
must first specify the folder eg
#UTILITY
The folder name must be preceeded by a
hash sign (#). If the folder is nested
then you must specify the full pathname
of the folder eg #SOURCE\DEMO
When Ramload encounters the hash sign it
will create the specified folder in
the ramdisk. If it already exists then
it will just skip this operation.
To copy a file in a folder you must
state the pathname as well as the
filename. eg SOURCE\DEMO\512COLS.S
this will copy a file called 512COLS.S
from a folder called DEMO which is in
another folder called SOURCE.
If a file is in the root directory of
the floppy then all that is required is
the filename eg REBOOT.PRG (another
program by me! This little program
forces a cold reset as if the ST had
been switched off. This program is
guaranteed to remove any reset proof
progs from RAM and that includes
viruses!)
Ramload.Inf can be easily created using
a text editor eg TEMPUS, GENST or by
using FIRST WORD in non WP mode. You
must use the filename Ramload.Inf and
you must copy it into the AUTO folder
or the root directory of your bootdisk.
To stop Ramload from running hold down
the left SHIFT key and the ALTERNATE
key together. If you have done this
correctly then a message will appear and
Ramload will have aborted.
I think I have trapped all possible
errors so if you do get an error then
the appropriate message will appear. If
no errors occur then Ramload will inform
you of the current file operation until
all tasks have been completed.
Ramload to the best of my knowledge will
run on all ST's regardless of the
monitor attached. If you are using this
program from the Auto folder then make
sure it is copied after your ramdisk
program since programs in the Auto
folder are executed in the order they
were copied.
Here is a small tip for non hard disk
owners. Install your ramdisk as drive C:
and save a DESKTOP.INF file into it.
Resolution changes are now much quicker
and drive A: isn't read either. This is
also a quick way of loading/testing
accessories. Also if you have a reset
proof ramdisk, a colour and a mono
monitor and a monitor switcher, the
contents of your ramdisk will be
preserved when switching from colour to
mono!
Well, I hope you found this program
useful and if you didn't then don't
complain as it's free!
Kevin Cheung, September 1989.