home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 2: Collection B / 17Bit_Collection_B.iso / files / 1662.dms / in.adf / Docs / Protect.doc / Protect.doc
Encoding:
Text File  |  1992-01-10  |  4.6 KB  |  111 lines

  1.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2.     ~              Protect V1.0 by Nicholas Dyson               ~
  3.     ~                                                           ~
  4.     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5.  
  6. 1 - What does it do ?
  7.  
  8.     What it does is it acts  as  a  workbench interface to the program
  9. "Lock" , which comes as standard with Workbench 1.3. If you don't have
  10. a hard drive you can stop reading now.
  11.      What "Lock" does is to allow you to write protect your hard drive
  12. and prevent yourself from accidentally  deleting  all your files. This
  13. is all very useful, but if,  like  me,  you cant be bothered opening a
  14. CLI window, try to remember  what  the  program arguments are and then
  15. type it all in, Protect is  the  program for you. It, therefore, won't
  16. change your life, but it will save you some typing.
  17.  
  18. 2 - How does it work ?
  19.  
  20.     When you first run the program all  you will get is a small window
  21. and four gadgets in this window. The program is set up to allow you to
  22. "lock" or "unlock" up to four  separate hard drive partitions and each
  23. of these drives is represented  by  one  of those gadgets. The default
  24. names of these drives are DH0: DH1:  DH2: DH3:, if any of these volume
  25. names do not  exist  on  your  system  then  that  gadget  will appear
  26. ghosted.
  27.     Right that's pretty simple so far, but  what do you do if you have
  28. called your partitions FRED  ALICE  and  DINGLEFORD?  Well don't worry
  29. because I've thought of that already.
  30.     In fact there are two things you can do:
  31.  
  32.     Thing 1: Change the tooltypes of  the  programs icon - I've set up
  33. the program to accept the names 1 to 4 as keys to the drives you want.
  34. Put in words that make sense  that  means  that  if you want the first
  35. gadget to refer to the drive  FRD:  you  "add" to the tooltypes of the
  36. programs icon the following :-
  37.  
  38.                         1=FRD:
  39.  
  40.     The number on the  left  represents  the  gadget position, in this
  41. case the topmost gadget, and  the  FRD:  is  your  drive name. You can
  42. enter up to four of these in  any order into separate locations in the
  43. tooltype slot when you run "info", so you might have something like :-
  44.  
  45.                         1=FRD:
  46.                         2=DH0:
  47.                         3=DH2:
  48.                         4=JH9:
  49.  
  50.     Just remember not to enter the  same drive name twice, the program
  51. won't spot it and will get confused.
  52.  
  53.     Thing 2: Use a hex editor  on  the  program - If you're very brave
  54. then this is the one for you.  Load  the  program into a hex editor of
  55. your choice and look for a  place  where  the four default drive names
  56. are all lined up like this :-
  57.  
  58.     DH0:     DH1:     DH2:      DH3:
  59.  
  60.     All you have to do is change the names to your own choice of drive
  61. names. You've got space for 9 characters from the beginning of each of
  62. the old names  to  put  yours  in,  so  if  you  did  call  your drive
  63. DINGLEFORD then tough, it won't fit.
  64.  
  65.     After all that nonsense using  the  program  could not be simpler,
  66. all you do is click the  gadget  which  contains the name of the drive
  67. whose status you want to change. If nothing went wrong the text on the
  68. gadget will change to let you know.  So if DH0: is unprotected and you
  69. want to protect it, click on the gadget marked :-
  70.  
  71.     Protect DH0:
  72.  
  73.     and it will (hopefully) change to :-
  74.  
  75.     Unprotect DH0:
  76.  
  77.     which means your drive is now  write-protected. If you want to put
  78. the drive back so you can  write  to  it  again  you just click on the
  79. gadget again and it will change back.
  80.  
  81.  
  82. 3 - Is that all you have to say ?
  83.  
  84.     Almost. A couple of words of advice.
  85.  
  86.     If you want to  use  this  program  you  have  to  have the "Lock"
  87. program  in  your  "c"  directory   or,  more  accurately,  your  "c:"
  88. directory. If I could work  out  how  the  Lock program works I'd have
  89. been able to write a stand alone program, but I had to cheat.
  90.  
  91.     Remember, where I say "protect"  read  "write protect". That's all
  92. this program does, it won't  make  your  hard drive immune to viruses,
  93. but it might stop some of the more stupid ones.
  94.  
  95.     If you run this program from CLI you won't be able to use your own
  96. drive names, unless you did the thing  with the hex editor, the reason
  97. for this is that I only  intended  Protect  to  be a shortcut to avoid
  98. using CLI, so if you're already in CLI then you don't need this stupid
  99. program.
  100.  
  101. Nicholas Dyson
  102. 136 Craiglea Drive
  103. Edinburgh
  104. Scotland
  105.  
  106.     Nicholas Dyson is an unassuming young  man  who owns an Amiga 500,
  107. Star LC-10 printer, 90  meg  SCSI  hard  drive  in  an A590 box, extra
  108. floppy drive and is  old-fashioned  enough  to  believe  that it isn't
  109. worth the money to buy a monitor when  a telly will do the job just as
  110. well.
  111.