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/
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:
This is a current list of commands:
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
Syntax:
TextSave filename
The interal text buffer is saved to a text file.
Sample:
TextSave %tmp%\autoexec.bat
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
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.
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]
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..
Syntax:
TextPosHome
Positions the virtual cursor at the top of the internal text buffer. Preselected sections are being reset.
Syntax:
TextPosEnd
Positions the virtual cursor at the end of the internal text buffer. Preselected sections are being reset.
Syntax:
TextPos Line
Postitions the virtual cursor to line Line
in the
internal text buffer. Line numbers start at 1.
Sample:
TextPos 42
Syntax:
TextPosDn
Positions the virtual cursor to the next line.
Syntax:
TextPosUp
Positions the virtual cursor to the previous line.
Syntax:
TextAdd Zeile
Inserts/appends a line below the current virtual cursor position.
Sample:
TextAdd This line is inserted or appended below.
Syntax:
TextDel
The line under the virtual cursor is deleted. The virtual cursor moves to the next line.
Syntax:
TextIns Zeile
Inserts/appends a line before the current virtual cursor position.
Sample:
TextIns This line is inserted above.
Syntax:
TextReplace newstring
The string searched and found by TextFind
is beeing replaced by newstring in the current line.
Sample:
TextFind old
TextReplace new
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
.
Syntax:
TextSetValue xvalue
'x
' is the character used to assign a value.In
general it will be '='.
Sample:
TextFindSect [386Enh]
TextFindValue keyboard
TextSetValue =*vkd