home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
066.lha
/
finish.doc
< prev
next >
Wrap
Text File
|
1986-11-20
|
3KB
|
55 lines
Finish command version 1.1 7/10/87
by Mark Wolfskehl
----------------------------------------------------------------------------
Hate that crunching noise your floppy drive makes when it multitasks?
Ever wish you could stop drive multitasking in your startup-sequence and
improve its performance? Well, now there's an easy solution to the problem:
the Finish command. The format of the command is as follows:
finish <drive #>
or
finish
The command will pause the current CLI until disk activity on the floppy drive
indicated by <drive #> stops. Accepted parameters are the numbers 0 , 1
and 2. Therefore, finish 1 will wait until activity on DF1: ends. If you type
finish with no parameter, DF0: is assumed. If you happen to forget the syntax
of the command, finish ? is available. For the intended results, the finish
command should not have to load up from the same drive you are checking.
I suggest copying the command into RAM:C first. For instance, in your
startup-sequence you would start out with something like:
makedir ram:c
path ram:c
copy c:finish ram:c
finish
After I have finish loaded into RAM:C, I put it after every command. This
eliminates A LOT of the disk crunching sounds that occur during a long
startup-sequence. If you don't need the command after your startup,
you can use delete ram:c/finish as your last command. Although this
command eliminates a lot of drive multitasking, it doesn't eliminate it all.
The rest is probably due to the execute command's use of the t directory.
C programmers, the Lattice C source code is provided so that you can
use the finish() function in your own programs. The format is:
error = finish ( drive );
Where drive is an int between 0 and 2, and error is also an int which
is zero if the call was successfull and nonzero if there was an error.
The val() function is not required by finish() and is called only by main().
----------------------------------------------------------------------------
If you find this program helpfull, distribute it with this file at will. I
won't take you to court if you happen to find someone who will actually
pay you for this program, and you can use the finish() function in public
domain and commercial programs. I don't expect this program to cause any
damage to your equipment, but if it does don't come crying to me.