home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 607.lha / AppServer_v3.01 / IconKill.doc < prev    next >
Text File  |  1992-01-31  |  2KB  |  79 lines

  1.  
  2.                 IconKill
  3.                 --------
  4.  
  5. NOTE ! WorkBech 2.0 of version 37.xxx or later required !!!
  6.                        ^^^^^^^^^^^^^^
  7.  
  8. IconKill is a small assembly language program that uses Delete (dos.library)
  9. and DeleteDiskObject (icon.library) to delete a file along with it's icon.
  10.  
  11. Arguments
  12. ---------
  13.  
  14. IconKill takes only one argument, a filename without any wildcards.
  15. The filename can be with or without ".info".
  16.  
  17. Error messages
  18. --------------
  19.  
  20. None. The icon will disappear if the deletion was successful. Otherwise
  21. it will stay.
  22.  
  23. No messages, because IconKill is mostly used with AppServer's Trasher
  24. and it will call IconKill twice for a file and it would cause a lot
  25. of messages...
  26.  
  27. Resident
  28. --------
  29.  
  30. IconKill can be made resident. It helps a lot with the Trasher.
  31.  
  32. How does it work ?
  33. ------------------
  34.  
  35. So that you could easily make an own one. A better one... :-)
  36.  
  37.   Cut off the possible ".info" in the filename.
  38.   Use Delete (dos.library) to kill the file (or dir).
  39.   If the file or dir doesn't exist after the deletion, 
  40.     IconKill uses DeleteDiskObject (icon.library) to kill the icon.
  41.     Return
  42.   Else
  43.     If it is a file
  44.       Return. It was maybe protected...
  45.     Else
  46.       (If the dir window is open, there is a lock...)
  47.       Take a copy of the icon using GetDiskObject (icon.library)
  48.       Try to kill the icon
  49.       Try to kill the directory
  50.       If the directory was deleted
  51.         Return
  52.       Else
  53.         Put the icon back so that the user can notice the problem
  54.       End if
  55.     End if
  56.   End if
  57.  
  58. Problems
  59. --------
  60.  
  61. IconKill can't kill a fake icon !!!!! (Created by "Show all files")
  62. This bug/feature is at least in KS37.175. I have reported this to
  63. bugs@commodore.com, so let's hope that they'll fix it...
  64.  
  65. Copyright and distribution
  66. --------------------------
  67.  
  68. IconKill is Copyright © 1991 by Jarto Tarpio. It can be freely distributed
  69. for non-commercial purposes.
  70.  
  71. Comments and bug-reports to:
  72.  
  73. Jarto Tarpio
  74. Nikkarinkuja 2 A6
  75. 02600 Espoo
  76. Finland
  77.  
  78. Internet e-mail: robin@vipunen.hut.fi or Jarto.Tarpio@hut.fi
  79.