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