home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / misc / 35647 < prev    next >
Encoding:
Text File  |  1992-11-08  |  3.8 KB  |  76 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!ukma!wupost!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jst50986
  3. From: jst50986@uxa.cso.uiuc.edu (Jack S. Tan)
  4. Subject: Re: programs and program objects
  5. References: <9226@blue.cis.pitt.edu.UUCP> 
  6. Message-ID: <BxBGKy.7zL@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Fri, 6 Nov 1992 22:46:08 GMT
  10. Lines: 64
  11.  
  12. djbpitt+@pitt.edu (David J Birnbaum) writes:
  13.  
  14. > According to The Unofficial Guide to the Workplace Shell (an excellent
  15. > introduction by Jeff Cohen): "A program object is not the program
  16. > itself, but a reference to it." He goes on to add: "Shredding a program
  17. > object will not delete the program. You can also have as many program
  18. > objects for a single program as you like ..."
  19. >
  20. > I just installed TE/2 and it created, among other things, a program
  21. > object called "te2.exe". Selecting this object launches the program.
  22. > Question:
  23. >
  24. > How do I delete the exe file named "te2.exe" from the WPS? If shredding
  25. > the program object doesn't delete the program, and there is no data
  26. > object that represents the actual file, how does the user get to the
  27. > latter?It isn't that I want to delete TE/2 (I don't), but I'd like to
  28. > understand the relationship between objects and physical files better.
  29. > I had thought that every physical file, including exe programs, would
  30. > have a corresponding data object that the user could manipulate for
  31. > file system housecleaning. In addition, I though that an exe file could
  32. > be pointed to by any number of program objects. My TE/2 directory seems
  33. > to have one program object, but no accessible data object corresponding
  34. > to the physical te2.exe file that I find on my disk.
  35. >
  36. > Thanks for any clarification.
  37. >
  38. > --David
  39.  
  40. Each file on the disk (any disk) is represented in the WPS as an object
  41. which can be maniplulated in the WPS (e.g., dragged to the shredder or
  42. printer or another folder).  Opening the Drive icon for a specific drive
  43. will access these objects.  Taking an object from a drive and deleting it
  44. *will* delete the actual file (this is not recommended, as objects destroyed
  45. in the WPS cannot be UNDELETEd).
  46.  
  47. In many cases, you may wish to create an object in the WPS which runs a
  48. program (this would be the program object).  Why would you want to create
  49. such an object?  For one, it is easier to access an icon on the desktop or
  50. one in your "DOS Applications" folder than hunting through the drive.  Also,
  51. when you move the file around the drive (say, when doing periodic house-
  52. cleaning), you don't need to remember the new location; the object you
  53. created is all you need to access.  (This is a cool thing about the WPS -
  54. program objects which point to files are automatically updated when files
  55. are moved and shuffled.)  To create this program object, you would 'tear off'
  56. a sheet from the Program Object template and fill in the the appropriate
  57. blanks.  It is such an object that has no physical representation on the
  58. drive (as a file) and can be deleted without harming the original.
  59.  
  60. With a template, the newly-created program object has attributes independent
  61. of the original; it only points to the first.  This means that you can play
  62. with the settings of the object without affecting the original.  If you need
  63. an exact copy, then you would create a shadow of the original object (on the
  64. pop-up menu).  The settings of a shadow are exactly the same as the original.
  65. Any changes affecting the shadow also affect the original, and vice versa.
  66. The only change that isn't propagated is deletion of a shadow:  deleting a
  67. shadow does not delete the original (but the converse is not true).
  68.  
  69. Hope this helps.
  70.  
  71. -- 
  72.  
  73. Jack Tan                                     Sattinger's Law:
  74. jahk@uiuc.edu                       It works better if you plug it in.
  75.  
  76.