home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
440.lha
/
NoDelete_v1.35
/
nodelete.doc
< prev
next >
Wrap
Text File
|
1990-11-13
|
7KB
|
155 lines
*************************************************************************
* NoDelete V1.35 (C) HooverSoft Aug 30th, 1990 *
*************************************************************************
USAGE: 1> run NoDelete [extensions] [-p priority] [-y ypos] <ENTER>
from CLI only.
HISTORY
CHANGES TO VERSION 1.3: SEP 1990
Lots of changes. Thinking of writing a new documentation. Anyway,
introduced command line options -p and -y for run-time setting of priority
of NoDelete and of vertical position of titlebar.
CHANGES TO VERSION 1.2: AUG 1990
Introduced the possibilty to give multiple extensions on startup. Lists
extensions when pressing a key while Nodelete's titlebar is active.
CHANGES TO VERSION 1.1: Aug 1990
NoDelete now automatically centers the Dragbar on Screen and calculates the
correct width for the window if a extension is specified.
Now works fine with AmiOmega. System won't crash if "Yes, Delete!" is
selected.
Now supports the use of extensions to ask confirmations only for special
files ending in defined extension. Will show the selected extension in
window's titlebar.
NoDelete now checks if another NoDelete is already active and exits if
true.
CHANGES TO VERSION 1.01: Jul 1990
Now handles protected Files correctly. Previous version didn't complain if
file was delete protected.
NoDelete sets its priority to a value of -5 directly after startup.
CHANGES TO VERSION 1.00: June 1990
Version 1.01 now restores the Dos Vector relative to _DosBase, so this
program should work under Kickstart 1.3 as well. If someone already uses
Kick 2.0, he or she should let me know if NoDelete works with that. I have
heard that the funny instructions in DosBase have been replaced with a
regular jump table.
WHY USE NODELETE?
I wrote this program mainly to make the fantastic public domain game
"Omega" more enjoyable to play. The author of this program thought it
reasonable to have the system unlink the save-file after having reloaded it
to somehow "simulate the continuity of character". Too bad that NoDelete
does not work correctly with this program...
WHAT IT DOES
NoDelete enables you erraneous humans to once again reflect on the
righteousness of your decisions concerning the deleting of files on
AmigaDos devices. If you try to delete a file or a program tries to remove
it, this is mostly done via DeleteFile() of the dos.library. When
executed, NoDelete bends this vector to its own routine which brings up
this cute little requester on the active window. This requester contains
the name of the file that the system is trying to delete. If you really
want to delete this file, click to the "Yes, Delete!" gadget. If not,
click to the "Oops, no way!"-Gadget of the requester. NoDelete works just
fine with aliases, wildcards etc. For problems see the "known
bugs"-section of this text.
EXTENSIONS
Lots of programs, programmers and normal people use extensions in their
file system to be able to immediately make out the contents of a file. For
example, ".c" specifies the file to be a C source code and ".bas" should
contain a basic program's source. There are tons of frequently used
extensions, from ".asm" up to ".cfg". If you use NoDelete and you don't
want the system to get on your nerves by confirming EVERY rm command, you
should use a certain extension on NoDelete's command line to tell NoDelete
that it should only ask confirmation for those precious ".c" or ".iff"
files and let all others alone.
The command line
1> run nodelete .c
would tell NoDelete to only intercept the removing of files ending in ".c"
and not to worry about any other files that are removed from the device.
You can specifiy up to ten extensions when running NoDelete. The command
1> run NoDelete .c .iff .tex .asm
will make NoDelete complain about any file which ends in one of the
specified extensions and leave all others alone. If you have forgotten
which extensions you specified at startup, just activate NoDelete's
titlebar and press any key. NoDelete will then give a list of extensions
in the titlebar until another key is pressed.
COMMAND LINE OPTIONS
Finally, HooverSoft is proud to have introduced command line options in
NoDelete. So far, two options are supported:
-p number where number is an integer between -20 and 9. If given on
the command line, NoDelete will set its priority to this
value. If you type rubbish or use values not allowed, the
default priority of -5 is set.
-y ypos where ypos is an integer ranging from zero to 245
This number will determine the ver-
tical position of NoDelete's titlebar. if you try to fool
NoDelete or do not give this option, the default value zero
(top of screen) is used.
KNOWN BUGS
NoDelete cannot take care of the AmigaDos command Delete. God knows how
this command erases a disk file...
The Shell won't complain if you try to delete any non-existent file while
NoDelete has its grip on the system. This is not really a bug because
NoDelete works on this basis of cheating the calling function and
pretending that everything is just fine and deleted.
Sometimes it is possible to get two copies of NoDelete running at the same
time. I can't explain how this is to be done, but somehow it works...
Anyway this happens very seldomly.
THE LEGAL STUFF
NoDelete is copyright (C) by HooverSoft. It may not be copied or sold for
commercial purposes. It may be distributed and copied freely for
non-commercial purposes only.
FURTHER PLANS & HOPELESS DREAMS
I would like to use CreateTask() to launch a separate Task for Nodelete.
This would unlink NoDelete's memory requirements from the current stacksize
of the system. It would be nice if "delete" could also be disabled but I
am not sure how to do this.
PUBLIC FEEDBACK
Bug reports (cheers, Jensi!), criticism, comments and approvements should
be sent to
SNAIL:
HooverSoft Inc.
Joellenbecker Weg 4
D-4900 Herford
Germany
BITNET:
hoover@math4.uni-bielefeld.de
Have fun & God bless you,
hoover