home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / system / inimaint / inimaint.txt < prev    next >
Text File  |  1994-03-21  |  18KB  |  371 lines

  1.                          IniMaint
  2.                  Copyright 1992, Carry Associates
  3.  
  4. IniMaint is an OS/2 PM program to display and manage *.INI files and
  5. is distributed by Carry Associates, 990 Ironwood Court, Marco Island,
  6. FL, 33937. Telephone number is 813-642-9126. The application was
  7. written by and is supported by Larry J. Martin. You can obtain
  8. Technical support by calling the number above, by leaving an Email on
  9. Compuserve for 72662,3616 or for the same ID in the OS2AVEND Forum
  10. Section 1.
  11.  
  12. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  13.  
  14. IniMaint gives you the ability to make virtually any change you want
  15. to any of the INI files in your OS/2 environment. Making changes to
  16. these files must be done with care because you can do serious and
  17. unpredictable damage to your environment. It is STRONGLY SUGGESTED
  18. that you insure that you have a usable backup of any INI file that
  19. you modify in any way.
  20.  
  21. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  22.  
  23. The enclosed is a Version 3.0j of IniMaint and has the following
  24. known problems and/or incomplete features:
  25.  
  26. 1. The Initial Dialog cannot be dismissed using the Enter Key, the
  27. Mouse must be used.
  28.  
  29. 2. If the Groups Dialog is displayed, a new Group is selected and
  30. then OK is selected without actually making any changes to any of the
  31. Groups or the Applications in a Group, then the Last Group Displayed
  32. is not updated and a subsequent use of the Groups Dialog will revert
  33. back to the previous Last Group.
  34.  
  35. 3. There is no Help available for the standard OS/2 New File Dialog.
  36.  
  37.  
  38.                  REPORTED COMMENTS OR PROBLEMS
  39.  
  40. The following items are problems that have been reported, but cannot
  41. be reproduced or comments that I have received from one or more
  42. users. Any assistance on the problems or additions to the comments is
  43. more than welcome.
  44.  
  45. 1. It was pointed out that although the Cursor in the Value MLE can
  46. be an Insert Cursor, there is no way to Insert information. My
  47. response is that the only way to change the length of a Value is by
  48. using the Replace Value Dialog because changing the expected length
  49. of an INI Key Value can cause unusual and unexpected errors. I
  50. further responded that the only way to change the cursor is to
  51. change it System wide, therefore, changing it only when it is in the
  52. MLE is a non trivial problem and I have not attempted to do it even
  53. though it leaves the apparent conflict between the appearance of the
  54. Cursor and the actual effect when a key is depressed.
  55.  
  56.                         INSTALLATION
  57.  
  58. To install the this version you must:
  59.  
  60. 1. Run the INSTALL.CMD file that is on the supplied diskette and
  61. follow the instructions.
  62.  
  63. 2. You may optionally add IniMaint to one of the Groups on your
  64. Desktop.
  65.  
  66. 3. You may optionally add the entry: SET INIMAINT= to your CONFIG.SYS
  67. file specifying the path and filename of an INI file that you want
  68. IniMaint to use to store it's operational information. If this entry
  69. is not found in the Environment, IniMaint will store it's operational
  70. infomration in the OS2.INI file.
  71.  
  72.                         OPERATION
  73.  
  74. To run IniMaint simply start it by clicking on the IniMaint.EXE file
  75. or start it from the Group to which it has been added. When IniMaint
  76. first comes up, it will default to editing the INI file that is
  77. identified by the system as the user INI file. This is normally
  78. C:\OS2\OS2.INI. The name of the current file is always displayed in
  79. the TITLE bar of the main window.
  80.  
  81. IniMaint can also be started with an initial INI file specified on
  82. the command line. This allows IniMaint to be started with a new file
  83. by using the command line, but also allows for it to be started by
  84. dropping a file on the ICON on the desktop or double clicking on an
  85. INI file, once the association is set up.
  86.  
  87. IniMaint will locate the window in a default location, but you can
  88. move and or size the window as you choose. When IniMaint is shut
  89. down, it will remember the file that it was currently working with as
  90. well as the size and location of the window and will restore all of
  91. these the next time it is run.
  92.  
  93. There are a number of IniMaint functions which will take some time
  94. to execute. For example, the maximum length Key Value that IniMaint
  95. will load into the Key Value Window is 60,000 bytes. Since each line
  96. only displays 8 bytes, this comes to 7,500 lines and it takes well
  97. over a minute. There are other similar types of functions, although
  98. the example is the longest. During these long operations, it is not
  99. possible to do any other IniMaint operations. However, the long
  100. functions are done in separate threads and the Message Queue is not
  101. blocked, therefore it is possible to go do some other, non-IniMaint,
  102. function during this time. In addition, since there are a number of
  103. reasons why a user might not want to wait until the lengthy function
  104. is completed, for example, it might have been selected in error,
  105. any IniMaint operation that takes a long time and displays the Wait
  106. Pointer can be terminated by hitting the ESC key.
  107.  
  108. IniMaint will normally store the current operating information such
  109. as the size and position of the windows, that INI file that is
  110. currently being edited and a large number of other items, in the User
  111. INI file, OS2.INI. This is sometimes not a convenient location, since
  112. this file gets completely replaced when a new version is installed
  113. and a problem with the OS2.INI file would mean that IniMaint would
  114. not run. IniMaint will use a different INI file and will create the
  115. file, if necessary, if an Environment Variable INIMAINT= is placed in
  116. the CONFIG.SYS file or in a CMD file that executes IniMaint. For
  117. example, if the user wanted IniMaint to use the file INIMAINT.INI in
  118. the C:\OS2\APPS subdirectory, they would code:
  119.     SET INIMAINT=C:\OS2\APPS\INIMAINT.INI
  120.  
  121.                      GETTING STARTED
  122.  
  123. If you did not obtain your copy of IniMaint to address a specific
  124. problem or you are not familiar with INI files and the kinds of
  125. things that IniMaint allows you to do with them, then it is strongly
  126. suggested that you review the Getting Started entry in the Hlep file
  127. along with the other General Help subjects.
  128.  
  129.                    MAIN WINDOW DESCRIPTION
  130.  
  131. The Main Window contains three standard child windows. Two of these
  132. windows are Listboxes and the third is a MLE.
  133.  
  134. The upper left Listbox will always contain the list of Applications
  135. for the current INI file.
  136.  
  137. The upper right Listbox will contain the list of Key Names for the
  138. Application that is currently selected in the Application Listbox.
  139.  
  140. The MLE, at the bottom, will contain the hex and ASCII display of the
  141. contents of the Key Name that is selected in the Key Listbox.
  142.  
  143. The Cursor will normally be forced to the MLE and the value of the
  144. data can be modified by changing either the hex or the ASCII fields
  145. of the MLE. The cursor cannot be moved to any portion of the MLE that
  146. does not contain data that can be modified and any modification to
  147. one type of data, hex or ASCII, will immediately be reflected in the
  148. other data.
  149.  
  150. The actual data in the INI file is not changed until the user selects
  151. the Update Item on the Action Menu or selects a different Key or
  152. Application in the same INI file. At this time, you will be asked to
  153. confirm that you want the INI file modified, unless you have turned
  154. the warning option off, see below.
  155.  
  156.                  IniMaint POPUP MENUS
  157.  
  158. In addition to the standard menu entries described below, each window
  159. has a Popup Menu that will appear when the standard action is taken,
  160. clicking once with the Right Mouse Button is the default. Each of the
  161. three primary windows has its own Menu and the Menu will contain thos
  162. items which are general to the entire Application and those that
  163. apply to the entries in that particular window. Most of the items on
  164. these menus are discussed below, however, there are three items on
  165. each menu that are unique to the Popup Menus and they are:
  166.  
  167. 1. Explain will attempt to give the user an explanation of the
  168. meaning of the currently selected Application and Key. Not every
  169. Application will have an explanation, but an attempt has been made to
  170. explain all of the standard OS/2 entries as completely as possible.
  171.  
  172. 2. Write Window to a File will cause the entries in the window in
  173. question to be written to a file, so they could be reviewed without
  174. IniMaint running.
  175.  
  176. 3. Print Window will cause the entries in the Window to be printed on
  177. the default printer.
  178.  
  179.                  IniMaint MENU OPTIONS
  180.  
  181. The various IniMaint Menu options are:
  182.  
  183. 1. File gives the user the ability to change INI files, refresh the
  184. current INI file, Dump the contents of the IniMaint variables,
  185. compare two INI files and Exit from IniMaint.
  186.  
  187. The Compare option allows the user to Compare two INI files on any
  188. one of three different levels:
  189.    A. List Applications that are in one INI file, but not the other.
  190.  
  191.    B. A. above plus any Key Names that are in one file, but not the
  192.       other.
  193.  
  194.    C. A. and B. above plus any Key Values that are in both files, but
  195.       are not equal.
  196.  
  197. The differences are displayed in a Listbox within a Dialog that
  198. allows the user to print or write a listing of the Listbox contents
  199. and/or create an INI file with some or all of the Applications or
  200. Keys that have differences.
  201.  
  202. 2. Options will display a Dialog that gives you the ability to:
  203.  
  204.    A. Turn off the display of the opening IniMaint Dialog.
  205.  
  206.    B. Turn off the dialogs that will ask for confirmation before
  207.       Deleting or Modifying the contents of the Current INI file.
  208.  
  209. 3. Groups will display a Dialog that allows you to define and manage
  210. the various Groups for this INI file. A bit of explanation is needed
  211. here. IniMaint gives the user the ability to arrange the applications
  212. in any INI file into Groups. These Groups can then be used in a
  213. number of different IniMaint areas and greatly ease the problems of
  214. handling an INI file with a large number of applications. For
  215. example, the OS2.INI file might be divided into two Groups, System
  216. and Private. The System Group would be the applications put in the
  217. file by OS2 Install and the Private Group would be the remaining
  218. applications. More or fewer Groups could be defined. How the user can
  219. use Groups within the IniMaint structure will become more clear
  220. below. The Groups Dialog gives the user the ability to define new
  221. Groups, to add and delete Applications and Delete Groups.
  222.  
  223. The procedure for establishing a new Group is to select Groups in the
  224. Group Dialog, select New Group, and supply a name. Once this is done,
  225. the Title of the Dialog will show the current Group and the new Group
  226. will be added to the Group Menu. You add Applications to the Group by
  227. selecting them in the Listbox.
  228.  
  229. The Listbox will display a specific Group or, if you want to know if
  230. there are any Applications that are not in a Group, will display all
  231. Groups. A single Application can be a member of up to 5 different
  232. Groups at any one time, so it is possible to define overlapping
  233. Groups.
  234.  
  235. 4. Size will calculate the minimum amount of Disk Space that would be
  236. required for an INI file that contained a selected set of
  237. Applications in the current INI file. When this item is selected, the
  238. user will be asked what he wants to Size. There will always be
  239. several choices, the various standard INI files, the current file and
  240. the currently selected Application. If there are any Groups defined,
  241. then they will be included among the selections. If there are more
  242. than one Group defined, then there will be an All Groups selection.
  243.  
  244. 5. Actions gives the user the ability to do a number of things:
  245.  
  246.    A. Update Current Key will write any changes that have been made
  247.       to the data in the MLE into the current INI file.
  248.  
  249.    B. Delete Application and Delete Key will do the obvious.
  250.  
  251.    C. Add Application, Add Key and Replace Key Value are all the same
  252.       function except entered at different points. Add Application
  253.       will ask for the name of a new Application to add to the
  254.       current INI file and then fall through to the Add Key, since
  255.       the Applications must have at least one Key. The Add Key will
  256.       ask for the name of the new Key and then fall through to the
  257.       Replace Key Value, since any Key Name must have an associated
  258.       Value. This will cause the Key Dialog box to be displayed. The 
  259.       Application and Key Names will be shown at the top of the
  260.       Dialog, followed by the current length of the data, the ASCII
  261.       representation of the data and the hex representation of the
  262.       data. This is the only option that will change the length of
  263.       a Key Value. Care must be taken when doing this, as many
  264.       applications depend on knowing the length of the INI items. As
  265.       the ASCII or hex values are changed, the changes will appear in
  266.       the other window and the length will be updated. The only
  267.       exception is when only a single hex digit is entered. The ASCII
  268.       window is not updated until two hex characters are entered.
  269.  
  270.    D. Rename and Duplicate Key give the user the ability to change
  271.       the name of an existing Key or to make a duplicate copy of the
  272.       Key using a different Key Name.
  273.  
  274.    E. Copy and Move will ask the user to select a Target File for the
  275.       Copy/Move and will then give the user the same choices as Size
  276.       above. The selected Applications will then be moved or copied
  277.       to the Target INI file, which will be created, if it does not
  278.       exist. This function is done Key by Key, so it will sometimes
  279.       take some time. However, the PM message queue is not blocked
  280.       while the move/copy is being done. The actual move or copy is
  281.       done by a separate program INICOPY, that can also be run as a
  282.       batch program, see below.
  283.  
  284.    F. Backup allows for an easy Backup of the System INI File, User 
  285.       INI File or both the System and User INI Files. Once the user
  286.       has selected names for the normal backups for the two files,
  287.       these files will be presented as the default for additional
  288.       backups. The user can set an Option that will bypass asking
  289.       the user if he wants to use the defaults. This selection will
  290.       always delete the target files before doing the backup, which
  291.       is one of the ways it varies from the Copy selection.
  292.  
  293. 6. Recover contains a list of capabilities designed to give the user
  294. the ability to recover from corrupted INI files. These capabilities
  295. are:
  296.  
  297.    A. Change User and/or System INI Files give the user the ability
  298.       to change the INI files that OS/2 is currently using to new
  299.       files. The primary use of this capability is to allow the user
  300.       to make changes to the User or System INI files that he knows
  301.       need to be made, but cannot make to the current User or System
  302.       Files because of protection built into OS/2. Great care must be
  303.       exercised when doing this, but it will sometimes represent the
  304.       only way that problem entries can be removed from an INI File.
  305.  
  306.    B. Repair inconsistancies between the INI file and the Desktop.
  307.  
  308.    C. Condense the Current INI file, the System INI File, the User
  309.       INI File or both the System and User INI Files. The Condense
  310.       is necessary because of the way updating is done to the INI
  311.       files. The updating will leave empty areas in the INI files and
  312.       these areas tend to get fragmented, thus causing the overall
  313.       size of the INI file to grow, sometimes grow very large.
  314.       Condensing the System or User INI files is not a simple task,
  315.       since they cannot be copied or erased while they are being used
  316.       by OS/2. This item switches the files to the copies long enough
  317.       to erase the old files and copy a condensed backup to the
  318.       original names. The only problem this causes is that it will
  319.       reset the desktop to the boot desktop. This function is removed
  320.       for Version 2.1 of OS/2 and beyond, since the handling of the
  321.       INI files was changed to automatically remove the empty space.
  322.  
  323.    D. There are two items to Test for and Reset the condition where
  324.       the User and System INI files cannot be updated. When this
  325.       condition is found, the user will be asked if he wants to 
  326.       correct the condition and, if he answers yes, the User and
  327.       System INI files will get changed so that they will be able
  328.       to be updated. The process involves making a copy of the INI
  329.       files and switching to them, so it takes a minute or so and
  330.       involves resetting the Desktop.
  331.  
  332. 7. Find allows the user to search the Application Listbox, the Key
  333. Name Listbox, the Key Value MLE, all of the Key Names in the currrent
  334. INI file, all of the Key Values for the current Application or all of
  335. the Key Values in the current INI file for either an Ascii string or a
  336. Hex value.
  337.  
  338.                              INICOPY
  339.  
  340. INICOPY is the program that is used by IniMaint to do the actual
  341. COPY/MOVE operations. This option is implemented as a separate program
  342. so that the user will have the ability to make copies of INI files,
  343. including the User and System INI files, at any time during the day.
  344.  
  345. The parameters expected by INICOPY are:
  346.  
  347. Required Parameters:
  348.  
  349. -Ifilename  - The fully qualified path and filename of the Source,
  350.               Input, INI file.
  351.  
  352. -Ofilename  - The fully qualified path and filename of the Target,
  353.               Output, INI file. The Target will be created if it does
  354.               not exist.
  355.  
  356. Optional Parameters:
  357.  
  358. -Fx         - Function requested - Default is C(opy)
  359.               C = C(opy)
  360.               M = M(ove)
  361.  
  362. -E          - COPY/MOVE Entire INI file - Default
  363.                                             
  364. -A          - COPY/MOVE All Groups
  365.                                              
  366. -Ggroup     - COPY/MOVE Specific Group
  367.                                              
  368. -Sapp       - COPY/MOVE Specific Application
  369.  
  370. -T          - Use Fast Copy. This is only valid if -E is also specified
  371.