EditINI-Scriptlanguage

Copyright (C) 1996-1998 by Kostis Netzwerkberatung
Talstr. 25, D-63322 Rödermark, Tel. +49 6074 881056, FAX 881058
kosta@kostis.net (Kosta Kostis), http://www.kostis.net/

EditINI V0.21 (1996-12-23)

The current version of EditINI is available on my homepage:

  http://www.kostis.net/freeware/

EditINI script files may include MS-DOS environment variables, which will be expanded. Syntax is identical to MS-DOS batch files (%envvar%).

Empty lines do nothing. Comment lines begin with the character ';'. There are no loop commands and there is no global search and replace. EditINI is still under development and being tested. There may still be possibly servere bugs in this program. Use it at your own risk.Reported bugs will be fixed as soon as possible.

There are four groups of commands:

  1. Text File Operations
    1. TextRead
    2. TextSave
  2. Text Search
    1. TextFind
    2. TextFindValue
    3. TextFindSection
    4. TextTrue
  3. Text Positioning
    1. TextPosHome
    2. TextPosEnd
    3. TextPos
    4. TextPosDn
    5. TextPosUp
  4. Text Modification
    1. TextAdd
    2. TextDel
    3. TextIns
    4. TextReplace
    5. TextSetLine
    6. TextSetValue

This is a current list of commands:

1. Text File Operations

1.1 TextRead

Syntax:

TextRead filename

Reads a text file into the internal text buffer. If another text is in that buffer, it's being replaced.

Sample:

TextRead c:\autoexec.bat

1.2 TextSave

Syntax:

TextSave filename

The interal text buffer is saved to a text file.

Sample:

TextSave %tmp%\autoexec.bat

2. Text Search

2.1 TextFind

Syntax:

TextFind string

The string may be anyway on a line, that means even within comments, so be careful! If the string is foun, the virtual cursor is moved to the position of the string..

Sample:

TextFind SmartDrv

2.2 TextFindValue

Syntax:

TextFindValue string

The string must be at the beginning of a line. If TextFindSection has been used to preselect a section the search is limited to that section.

2.3 TextFindSection

Syntax:

TextFindSection section

Searches a section within the internal text buffer. A section must be at the beginning of a line. TextFindValue is limited to such a section after the use of TextFindSection. The search goes through the whole internal text buffer again, if TextFindSection is called without the section parameter.

Sample:

TextFindSection [386Enh]

2.4 TextTrue

Syntax:

TextTrue

Aftter calling TextFind, TextFindValue or TextFindSection the following commands will only be executed if a search was successful:

TextAdd, TextDel, TextIns, TextReplace, TextSetLine, TextSetValue

This dependany is only valid until the next search or after TextTrue. After TextTrue the above mentioned commands are exectuted in any case if possible..

3. Text Positioning

3.1 TextPosHome

Syntax:

TextPosHome

Positions the virtual cursor at the top of the internal text buffer. Preselected sections are being reset.

3.2 TextPosEnd

Syntax:

TextPosEnd

Positions the virtual cursor at the end of the internal text buffer. Preselected sections are being reset.

3.3 TextPos

Syntax:

TextPos Line

Postitions the virtual cursor to line Line in the internal text buffer. Line numbers start at 1.

Sample:

TextPos 42

3.4 TextPosDn

Syntax:

TextPosDn

Positions the virtual cursor to the next line.

3.5 TextPosUp

Syntax:

TextPosUp

Positions the virtual cursor to the previous line.

4. Text Modification

4.1 TextAdd

Syntax:

TextAdd Zeile

Inserts/appends a line below the current virtual cursor position.

Sample:

TextAdd This line is inserted or appended below.

4.2 TextDel

Syntax:

TextDel

The line under the virtual cursor is deleted. The virtual cursor moves to the next line.

4.3 TextIns

Syntax:

TextIns Zeile

Inserts/appends a line before the current virtual cursor position.

Sample:

TextIns This line is inserted above.

4.4 TextReplace

Syntax:

TextReplace newstring

The string searched and found by TextFind is beeing replaced by newstring in the current line.

Sample:

TextFind old
TextReplace new

4.5 TextSetLine

Syntax:

TextSetLine text

Replaces the line the virtual cursor currently points at with text.

Sample:

TextSetLine This is the new content of the current line.

4.6 TextSetValue

Syntax:

TextSetValue xvalue

'x' is the character used to assign a value.In general it will be '='.

Sample:

TextFindSect [386Enh]
TextFindValue keyboard
TextSetValue =*vkd