home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / utility / dos_icon.zip / DOS_ICON.TXT next >
Text File  |  1992-04-17  |  5KB  |  116 lines

  1. Assigning GEOS Icons to DOS Files
  2.  
  3. Updated: 92-03-12
  4.  
  5. This document is provided as a way for PC/GEOS users to get the most
  6. out of GeoWorks products. It contains technical information on how to
  7. modify PC/GEOS system files and use undocumented features. Therefore,
  8. most of these tips are for advanced DOS users and are not supported
  9. by GeoWorks since they go beyond the scope of normal use.
  10.  
  11. [Note also that GeoWorks cannot promise to get you out of any mess
  12. you may create using this information. Not to say we won't, but the
  13. customer service reps have not been briefed on this information since
  14. it is, as Frank says, undocumented --GW Adam]
  15.  
  16. Here is a way to give your DOS files any icon seen in GEOS (to
  17. temporarily, I hope, relieve the lack of an icon editor). Under the
  18. heading of [fileManager] in the GEOS.INI file add the name of your
  19. file (wildcards ok) and then specify the icon (i.e. token), which is
  20. a four letter code and is case sensitive. The code is in quotes and
  21. is followed by a comma and a zero. For example, if I wanted to give
  22. my PROCOMM.BAT file the GeoComm icon, my GEOS.INI file would be
  23. modified to look like this:
  24.  
  25. [fileManager]
  26. filenameTokens = {
  27.    PROCOMM.BAT = "TERM",0
  28.          *.EXE = "gDOS",0
  29.          *.COM = "gDOS",0
  30.          *.BAT = "gDOS",0
  31.          *.*   = "FILE",0,"NPAD",0
  32. }
  33.  
  34. Notice that I have placed the filename before the wildcards--this is
  35. important! Also note that the four letter code for GeoManager is
  36. TERM. The four letter codes for the rest of the icons ae listed
  37. below along with the actual icons on the next page. Remember they are
  38. case sensitive and must be in quotes followed by a comma and a zero
  39. as seen above.
  40.  
  41. gDOS - generic DOS program icon
  42. WP00 - GeoWrite icon
  43. FILE - generic DOS file icon
  44. NFCT - Nimbus font converter icon
  45. gAPP - generic GEOS application icon
  46. NPAD - Notepad icon
  47. gDAT - generic GEOS data icon
  48. PERF - Perf icon
  49. 3DFt - 3D Font Demo
  50. PMGR - Preferences icon
  51. AMOL - America Online icon
  52. scbk - Scrapbook data file icon
  53. BANR - Banner icon
  54. Scrp - Scrapbook icon
  55. BONC - Bounce
  56. DUMP - Screen Dumper
  57. CALc - Calculator icon
  58. SOLI - Solitaire icon
  59. CCOM - Complete Communicator
  60. FLDR - Subdirectory folder icon
  61. TERM - GeoComm icon
  62. TETR - Tetris icon
  63. adbk - GeoDex data file icon
  64. ADBK - GeoDex icon
  65.  
  66. Icons only in TOKEN.DB:
  67. DDAT - GeoDraw data file icon
  68. DP00 - GeoDraw icon
  69. GCAL - Unknown application icon
  70. DESK - GeoManager icon
  71. GCDa - Unknown app's data file
  72. plnr - GeoPlanner data file icon
  73. PLNR - GeoPlanner icon
  74. WDAT - GeoWrite data file icon
  75.  
  76. If you browse through the TOKEN.DB file with a HEX/ASCII editor you
  77. might find some duplicate icons, but I have only listed the primary
  78. ones here since the other ones haven't always worked for me in all
  79. cases.
  80.  
  81. Note: Within the TOKEN.DB file which was sent out on the setup disks
  82. with version 1.2 there are two additional icons. Be careful, though.
  83. If you erase (e.g. to rebuild) your TOKEN.DB file they will be gone!
  84.  
  85. A technical note about PC/GEOS file structure and icons:
  86.  
  87. You may wonder where all these mysterious codes come from and what
  88. they mean. First let me briefly explain the way PC/GEOS stores files.
  89. As you may have already noticed, PC/GEOS stores GEOS files with a
  90. three digit numeric extension. This is because PC/GEOS allows long
  91. filenames whereas DOS does not. So, if you save a file named
  92. "Business Report for April" in GeoWrite, the DOS file name would look
  93. like BUSINESS.000. All that PC/GEOS does is take the first eight
  94. valid DOS characters from the GeoWrite name and hen tack on a
  95. numeric extension. If a BUSINESS.000 file already existed, PC/GEOS
  96. would simply increment the numeric extension by one, thus creating a
  97. BUSINESS.001 file (for example, that would be the case if you
  98. subsequently created a GeoWrite file called "Business Report for
  99. May"). You can therefore create a thousand PC/GEOS data files in
  100. which the first 8 characters of the filename are "business." The
  101. actual PC/GEOS filename is stored within the data file itself along
  102. with the its Type and Creator.
  103.  
  104. If you use a file Hex editor to view PC/GEOS files (application or
  105. data files), you will notice three things. The file's Type is listed
  106. at offset 14H, the Creator at offset 1AH, and the long filename at
  107. offset 20H. The Type and Creator are stored as four digit codes. The
  108. Type is simply the code for that particular file 'type' and the
  109. creator is the code of the application which created it. The Creator
  110. for all PC/GEOS applications is GEOS. The codes which I listed for
  111. the icons are the Type codes. Thus, if you wanted to know the code
  112. for a new PC/GEOS application, you could simply pull out your handy
  113. hex editor and take a look at offset 14H to find the code.
  114.  
  115.  
  116.