home *** CD-ROM | disk | FTP | other *** search
- ---------------------------------------------------------------------------
- | |
- | Initor 1.7 ( INIfile ediTOR ) |
- | |
- | OS2 Ini File Editor |
- | CopyRight (C) 1996 Jobst Schmalenbach |
- | |
- | Email: jhs@dgs.monash.edu.au |
- | |
- | Snail Mail: Jobst Schmalenbach |
- | 19 York Street |
- | Caulfield South, VIC, 3162 |
- | Australia |
- | |
- | |
- | The file README.1ST and the file LICENSE.TXT |
- | BE KEPT TOGETHER WITH INITOR! |
- | |
- ---------------------------------------------------------------------------
- This file and the file LICENSE.TXT must be kept together with the INITOR.
- (If not may your inner conscious slowly crawling up you back and over your
- head and give you a terrible freight when you finally see it in front.)
- This program is free software; you can redistribute it and/or modify
- it under the terms of the attached License.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- attached License for more details.
- You should have received a copy of the file LICENSE.TXT
- along with this program; if not, write to the author below.
-
- ___________________________________________________________________________
- ___________________________________________________________________________
-
- WHAT DOES THIS PROGRAM DO?
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- Initor enables you to edit OS2 "INI" files. You are able to add, deleted
- and edit applications, keys and key data. Further more you are able to
- save and read data from the current INI file to and from another INI file.
- DO NOT USE THIS PROGRAM IF YOU DONT KNOW WHAT YOU ARE DOING!!!!
- I take no responsibilty if you bugger up your INI files and I have NOT
- included "safety keys" into the application.
- BUT: therefore its very fast and efficient!
- I have written this program because the LOTUS INI file editor drove me nuts!
- You cannot size it to a different window size, it comes up with
- this silly window at startup and does not remember the last directory were
- you edited a file. So I used the basic structure of Real World Programmings
- INI file editor and changed a few things and bugs to make INITOR.
-
-
- UNZIPPING AND LOCATION OF FILES:
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Since you are reading this file you must have unzipped the archive.
- All you need to do now is to copy the files:
- initor.exe
- initor.hlp
- initor.ini
- into the same directory.
- You might want to copy the files into a directory of you PATH statement.
-
-
- HOW DOES IT WORK?
- ~~~~~~~~~~~~~~~~~
- Simply start INITOR from the command line or have an icon pointing to this
- program somewhere on the desktop. Refer to the OS2 help files how to make
- a program icon.
-
- You can drop an icon (or specify a filename on the command line) and initor
- starts up with that INI file opened. You can associate *.ini with initor
- and double click on the INI file icon and INITOR will start up with the
- file opend. (see OS/2 reference about association and/or dropping).
-
- Initor starts with the "OS2.INI" (USERINI) file opened when no filename
- is specified on the command line or double clicked on INITOR icon.
-
-
- CHANGING INI FILES:
- ~~~~~~~~~~~~~~~~~~~
- If you want to change to another INI file click on "File" (ALT-f).
-
- You can choose:
- - USER INI FILE (os2.ini)
- - SYSTEM INI FILE (os2sys.ini)
- - USER AND SYSTEM FILE (above together)
- - Other INI files (this could be for example AmiPro's INI FILES)
-
- If you click on USER or SYSTEM file the user and/or system INI file are opemed
- as set in the enviromental variable which must be set in the config.sys file.
- If you choose "Other .." a file dialog box is opened with the directory shown
- where INITOR was started up. You can open another (personal) INI file.
-
- If file is not an INI file, an error message will be displayed.
-
- If you save the path as shown below "Saving ..." the next time you
- open INITOR the file dialog box opens with the last saved path.
-
-
- MOVING AROUND:
- ~~~~~~~~~~~~~~
- You simply click on an application to go to another application in the
- "Application Name" Window using scroll bars as well.
-
- You can use the TAB key to switch between the applicatio or key windows
- and scroll using the cursor keys.
-
- All key names of that application will be displayed in the "Key Name" window.
-
- The data of the first key will be displayed in HEX and ASCII.
- If you need another key, click on another key and the new data will be
- displayed with offset and the number of bytes in HEX and ASCII.
-
-
- EDIT KEYS AND KEY DATA:
- ~~~~~~~~~~~~~~~~~~~~~~~
- To change the data of an application use "Edit Application" (alt-e).
-
- A Dialog box will appear with the application name in the first row,
- the key name in the second row and the key data last.
-
- You cannot change the application name, that is set read only but you can
- change the key name and the data.
-
- The first dialog box is for ASCII strings with values above 32 and below
- 127 (ASCII). If key data is shown with values below 32 you can click
- on "HEX" button and another dialog box appears to be able to change
- binary data.
-
- If you want to edit keys larger than 10500 bytes you might consider reading
- the SPLIT/UNSPLIT option below.
-
-
- HEX DATA EDITING:
- ~~~~~~~~~~~~~~~~~
- If you clicked on the HEX button in the "ADD-EDIT" dialog box above a
- dialog box appears to edit hex (binary) data.
-
- Just edit data as required keeping a space between each BYTE and use
- HEX and BINARY numbers to enter data into the window.
-
- You must keep a space between each byte or else your data will not
- be accepted. The box will stay until the data is accepted
- or you press CANCEL.
-
- You must end the data in the hex window with a "00" and a space.
- The "00" is part of the key data in the INI files and the space
- is the programs way to determine a byte separated from another byte.
-
- I dont think this is a major problem although it might seem a little
- awkward in the first place.
-
- If you want to edit keys larger than 10500 bytes you might consider reading
- the SPLIT/UNSPLIT option below.
-
-
- DELETING APPLICATIONS AND KEYS:
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- If you need to delete a key or application click on "Delete Items" (ALT-d).
-
- "Delete Application" will delete the applcation pointed at with all keys
- belonging to THAT application and the data belonging to the keys.
- An application example: "AMIUSER" in the provided test.ini!
-
- "Delete Selected Key" will only destroy the key and the data.
- A key example of above application: "BackUpPath"
- Data for the above key: "d:\tmp"
-
- You are asked for confirmation to delete the key/application.
- The key name is displayed on the query mennu, so you know which key it is.
-
-
- ADDING APPLICATIONS AND KEYS:
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- If you need to add a new application or add a key to an existing
- application choose "Add Items" (ALT-A).
-
- "Add new application" adds a new application to the INI file. An
- application is for example "AmiPro". If you add a new application
- it will be sorted alphabetically (not in the INI file).
-
- "Add new key" adds a new KEY to the current application pointed at.
- A new key would be for example "INIPATH" (data in my case: d:\os2).
-
-
- SAVING (COPYING) DATA AND SCREEN LOCATION:
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- The data is saved automatically when you press OK in the ADD or EDIT
- (HEX EDIT) dialog boxes.
-
- If you want to save (or copy) an application or key to another file
- you may do so by using the save menu (ALT-s):
-
- There are three options available:
- Save Application to other (INI) File
- Save Key to other (INI) File
- Save ALL to other (INI) File
-
- After you clicked on one of the three you are asked (dialog box) to specify
- the file name. If you specify an existing file the information is simply added
- to the file. If the file is NOT a proper INI file an error message will
- be displayed and nothing will happen.
- If the file opened and if applications or keys with the same name exist
- in the OPENED file exist, they are simply overwritten. So you must make sure
- you do not overwrite the current application in the "save to" file.
- (You could simply open another copy of the INITOR.)
-
- The first option saves ALL KEYS of one APPLICATION to a new file.
- The second option saves ONE KEY of one APPLICATION to a new file.
- The third option saves all information in the current file to a new file.
-
- You can save the window location (quite handy) by selecting "Screen Location".
-
- You can save the last paths:
- SAVEREAD PATH saves the path of the directory last read from/save to.
- DISPLAY PATH saves the path of the last INI file displayed.
-
- These information is stores in a file called INITOR.INI in the programs
- directory. You can edit it and have a look at it.
-
-
- READING IN OF DATA OF OTHER INI FILES:
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- If you want to read data from a specified INI file into the current displayed
- file simply click on (ALT-r):
-
- There are two choices to read from another file into the current file:
- Read Application form other file.
- Read other INI file into current file.
-
- Once you clicked on one of the items, you are asked to specify a filename
- to read from. If you specify a new file it is opened (for saving only).
- If you specify an existing file it is checked and if it's not a proper INI
- file an error message will be displayed and nothing happens.
-
- Read other INI file into current file.
- Load the INI file you want to add the data and click on the READ menu
- to read in the data from a specified file. Note that the complete file is read
- into the current file and if a KEY/APPLICATION of a name in the current file
- exists, it is simply overwritten. No check is made.
-
- Read Application form other file:
- Load the INI file you want to add the data and click on the READ menu
- to read in the data from a specified file. You are asked afterwards in a
- select dialog box which applications you want to read into the current file.
- Simply select each of the items you want an click on OK.
- If a KEY/APPLICATION of a name in the current file exists, it is
- simply overwritten. No check is made.
-
-
- POPUP MENUS:
- ~~~~~~~~~~~~
- There are two POPUP menus availabe depending the window the cursor is on.
- These POPUP menus are selected when the right mouse button is pressed
- in either of the windows.
-
- If the cursor is in the application window, the following popup is displayed:
- ADD Application
- Save Application
- Delete Application
- Edit Application ASCII
- Edit Application HEX
- Refresh
-
- If the cursor is in the key window, the following popup is displayed:
- ADD Key
- Save Key
- Delete Key
- Refresh
-
- If you do not select anyone of the items, nothing will happen.
- You must hold the right mouse as long as you want to select something.
- The popup menu disappears as soon as the mouse button is released.
-
-
- ACCELERATOR KEYS:
- ~~~~~~~~~~~~~~~~~
- A number of accelerator keys are available to jump to certain options:
-
- SHIFT A: Displays the about box.
- SHIFT U: Loads the USER PROFILE into the editor.
- SHIFT S: Loads the SYSTEM PROFILE into the editor.
- SHIFT O: Opens up a diaplog box to load in user specified INI file.
- SHIFT R: Refreshes data displyed in editor window.
- ALT X: Exit INITOR.
- F1: Help window is displayed.
- SHIFT SPACE: Edit selected application in HEX window.
- SPACE: Edit selected application in ASCII window.
- SHIFT INSERT: Add key to selected application.
- INSERT: Add application to current INI file.
- SHIFT DELETE: Delete current key selected (Question box appears).
- DELETE: Delete current application selected.
- (Question box appears).
- TAB: Switch between application and key window.
-
- The keys are displayed on the menus as well.
-
-
- SPLIT AND UNSPLIT KEYS:
- ~~~~~~~~~~~~~~~~~~~~~~~
- There is a limitation of how many bytes one can display in a dialog box.
- This is set to 32K. However, the HEX editor needs fo each byte used 3 bytes
- to display the entity. 32K / 3 > 10500bytes.
-
- Therefore if you need to edit a key which is larger than 10500 bytes you
- need to split the key first. Using the SPLIT item from the MISC MENU will
- split the key into 8000 byte chunks, with the last being the remainder
- of the key, hence a 19396 byte long key is split into 2x8000 and 1x3396.
- You need to place the cursor on the key to be split.
-
- Using the UNPLIT option will put the keys together again. If you have edited
- one of the split keys this will produce a larger key or smaller key than
- the original one, depending on what you have done with the split keys.
-
- Consider the unsplit key is called "testing" and its 19396 long.
- than the split keys are called and sized:
-
- testing_Initor SplitKey_1, 8000
- testing_Initor SplitKey_2, 8000
- testing_Initor SplitKey_3, 3396
-
- Please leave the names until you unsplit them otherwise the program has no
- way to find out which key is split and which of the keys belong together.
- When unsplitting the cursor must be placed on the first key to unsplit.
-
-
- HELP:
- ~~~~~
- Help is diplayed by using Help on the menu.
-
-
- NOTE:
- ~~~~~
- Note that this editor was written with speed in mind. I am looking
- after a few systems (LanServer 4.0 etc) and needed a quick INI editor
- to change a few settings to make a few applications "behave" a little better.
- I got frustrated with LOTUS INI editor because it doesn't remember the last
- path, screen location and comes up with this box at startup telling you its
- dangerous to change something in you INI files (dont we all know?????).
- So I wrote this one and use it (and a few friends too) nearly every day.
- An I left out a few things to make this program faster to work with
- and not have to press too many buttons.
-
-
- TEST INI FILE:
- ~~~~~~~~~~~~~~
- I have included a test INI file which you can load an try out a few things
- before you want to change the "real" ones. It has a number of applications,
- keys and key data in it. The file is taken from my LOTUS AmiPro.
- It is the "AMIUSER3.INI" files which contains all the setttings of a user.
- The first APPLICATION is the "AMIUSER" in that file.
- A KEY is for example the "BACKUPPATH" and the KEYDATA is "H:\AMIPRO\TMP"
- (AmiPro's direcotry on my machine is on "H").
- Try a few things here and you get the idea.
-
- You could test run INITOR'S INI file. Dont worry if you changed something
- incorrectly. Simply resave in that case.
-
-
- BUGS:
- ~~~~~
- I tested this thouroughly and it worked fine with me and one other person,
- but as you can see below, a few came up anyway.
- This bugs mean that the DATA VALUES are saved/read correctly. I am certain
- that these is correct, but they might be some other (non data) related bugs.
-
- It has run on a number of systems with different types of WARP installed.
- Warp plain, Warp fixpak5, Warp fixpak10, Warp fixpak17.
- This program, however, is not fancy.
- It is straight to the point and useful for somebody do some work quickly.
-
- PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE !!!!
- PLEASE PLEASE !!!!
- PLEASE Report bugs to the author. PLEASE !!!!
- PLEASE PLEASE !!!!
- PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE !!!!
-
- Email: jhs@dgs.monash.edu.au
-
- I really would like to hear from you if you found any, so I can enhance
- the program. I believe in (some) free stuff.
-
-
- FUTURE ENHANCEMENTS:
- ~~~~~~~~~~~~~~~~~~~~
- The memory usage is a bit heavy, will change this to better heap allocation.
- Some of the scroll bars and menus havent got ALL functions, soon to come....
- Add command line options so the program can be executed without the need
- of a PM window.
- Open two windows of INITOR and copy/paste between editors to get/save keys.
- Including options to enable/disable query menus (initor.ini).
- Other ideas anyone????
-
-
- SUGGESTIONS:
- ~~~~~~~~~~~~
- Very wellcome. Semd me some EMAIL: jhs@dgs.monash.edu.au
-
-
- HISTORY:
- ~~~~~~~~
- June 1996: INITOR 1.0
- June 1996: INITOR 1.1
- - added very simple help menu (shows readme file).
- - added abilty to edit and add BINARY data (hex data).
- - fixed last path saved (path was cut off when longer the 20).
- - fixed redraw when canceling add/edit dialog box.
- - fixed some data appearing in key data window
- when adding new key.
- - fixed some data appearing in key data window
- when adding new application.
- September 1996: INITOR 1.2
- - added copy action for saving key data.
- - added copy action for saving one application and all its keys.
- - added entire file copy.
- - fixed bug in the hex edit part, too small edit buffer.
- (still only 10K).
- - fixed bug in memory allocation of data (leak?).
- - fixed saving of changed data (quicker and more efficient).
- - fixed bug of help file not found.
- (using argument passed to main now).
- - fixed a bug in my email address.
- October 1996: INITOR 1.3
- - added reading in of other entire INI file into current INI file.
- (ALL OF IT).
- October 1996: INITOR 1.4
- - fixed "cancel" button in the edit application dialog box.
- - added display of error message when incorrect INI file is used
- for reading/writing.
- - changed the font in the hex box to courier (monospaced).
- - added reading in of applications from other file into
- current INI file.
- October 1996: INITOR 1.5
- - Icons can now be dropped onto INITOR.
- - On the commandline you can call up INITOR
- with a filename specified.
- - POPUP menus now working.
- - Accelerate Keys now working.
- - Partly fixed the memory usage.
- - Rearranged the menus so there's now a FileMenu.
- - Menus now include accelerator key names.
- - Use TAB key now to jump between Application and Key window
- and scroll with key to the next item.
- - There are now two paths to be saved to the initor ini file:
- + path name for display files.
- + path name for save/read files.
- - INITOR has its OWN ini file now. Must/will be located in the
- same directory as the program itself.
- - Fixed: Title specifies name of INI file now correct.
- October 1996: INITOR 1.6
- - Fixed bug of being able to edit application even if "No Entries"
- - Fixed wrong display of accelerator keys on the menus.
- (there I tell my students ALL the time to be careful using
- copy/paste functions and then I do it myself....)
- - added filename to query menus to make sure that the
- CORRECT key gets deleted!
- - added SPLIT/UNSPLIT menu to be able to edit *LARGE* keys.
- (I mean *!LARGE!*)
- October 1996: INITOR 1.7
- - Fixed bug from 1.5 and 1.6 where I forgot to switch of the
- dynamic inclusion of standard libraries. It was working with
- on my machine, coz the library was found in one of my path.
-
- WHY FREE?
- ~~~~~~~~~
- Well, easy. I use a lot of the GNU stuff:
- GTAK, GTAR, emacs, gcc, gnu utils, emtex, ghostview and many many more.
- I have used a lot of free stuff as well.
- So why shouldn't I make some free programs available?
-
-
- AUTHOR:
- ~~~~~~~
- Jobst Schmalenbach
- 19 York Street
- Caulfield South, VIC, 3162
- Australia
- phone: 61 3 9523 7348
- mobile: 61 41 141 6843
- EMAIL: jhs@dgs.monash.edu.au
-
-
- AND LAST BUT NOT LEAST:
- ~~~~~~~~~~~~~~~~~~~~~~~
- ENJOY!
-
-