home *** CD-ROM | disk | FTP | other *** search
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~ Protect V1.0 by Nicholas Dyson ~
- ~ ~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- 1 - What does it do ?
-
- What it does is it acts as a workbench interface to the program
- "Lock" , which comes as standard with Workbench 1.3. If you don't have
- a hard drive you can stop reading now.
- What "Lock" does is to allow you to write protect your hard drive
- and prevent yourself from accidentally deleting all your files. This
- is all very useful, but if, like me, you cant be bothered opening a
- CLI window, try to remember what the program arguments are and then
- type it all in, Protect is the program for you. It, therefore, won't
- change your life, but it will save you some typing.
-
- 2 - How does it work ?
-
- When you first run the program all you will get is a small window
- and four gadgets in this window. The program is set up to allow you to
- "lock" or "unlock" up to four separate hard drive partitions and each
- of these drives is represented by one of those gadgets. The default
- names of these drives are DH0: DH1: DH2: DH3:, if any of these volume
- names do not exist on your system then that gadget will appear
- ghosted.
- Right that's pretty simple so far, but what do you do if you have
- called your partitions FRED ALICE and DINGLEFORD? Well don't worry
- because I've thought of that already.
- In fact there are two things you can do:
-
- Thing 1: Change the tooltypes of the programs icon - I've set up
- the program to accept the names 1 to 4 as keys to the drives you want.
- Put in words that make sense that means that if you want the first
- gadget to refer to the drive FRD: you "add" to the tooltypes of the
- programs icon the following :-
-
- 1=FRD:
-
- The number on the left represents the gadget position, in this
- case the topmost gadget, and the FRD: is your drive name. You can
- enter up to four of these in any order into separate locations in the
- tooltype slot when you run "info", so you might have something like :-
-
- 1=FRD:
- 2=DH0:
- 3=DH2:
- 4=JH9:
-
- Just remember not to enter the same drive name twice, the program
- won't spot it and will get confused.
-
- Thing 2: Use a hex editor on the program - If you're very brave
- then this is the one for you. Load the program into a hex editor of
- your choice and look for a place where the four default drive names
- are all lined up like this :-
-
- DH0: DH1: DH2: DH3:
-
- All you have to do is change the names to your own choice of drive
- names. You've got space for 9 characters from the beginning of each of
- the old names to put yours in, so if you did call your drive
- DINGLEFORD then tough, it won't fit.
-
- After all that nonsense using the program could not be simpler,
- all you do is click the gadget which contains the name of the drive
- whose status you want to change. If nothing went wrong the text on the
- gadget will change to let you know. So if DH0: is unprotected and you
- want to protect it, click on the gadget marked :-
-
- Protect DH0:
-
- and it will (hopefully) change to :-
-
- Unprotect DH0:
-
- which means your drive is now write-protected. If you want to put
- the drive back so you can write to it again you just click on the
- gadget again and it will change back.
-
-
- 3 - Is that all you have to say ?
-
- Almost. A couple of words of advice.
-
- If you want to use this program you have to have the "Lock"
- program in your "c" directory or, more accurately, your "c:"
- directory. If I could work out how the Lock program works I'd have
- been able to write a stand alone program, but I had to cheat.
-
- Remember, where I say "protect" read "write protect". That's all
- this program does, it won't make your hard drive immune to viruses,
- but it might stop some of the more stupid ones.
-
- If you run this program from CLI you won't be able to use your own
- drive names, unless you did the thing with the hex editor, the reason
- for this is that I only intended Protect to be a shortcut to avoid
- using CLI, so if you're already in CLI then you don't need this stupid
- program.
-
- Nicholas Dyson
- 136 Craiglea Drive
- Edinburgh
- Scotland
-
- Nicholas Dyson is an unassuming young man who owns an Amiga 500,
- Star LC-10 printer, 90 meg SCSI hard drive in an A590 box, extra
- floppy drive and is old-fashioned enough to believe that it isn't
- worth the money to buy a monitor when a telly will do the job just as
- well.
-