Hi,

I've some textfiles (Text.cfg) with a lot of sections (sectionA.1,
sectionA.2, sectionA.3, sectionB1 and so on). Im only interested in the
sectionA! Euch section have a headline like this: [sectionA.x]
What I want to do:
1. Find out how many sections A are present in the Text.cfg. (Can vary
between 1 and 20)
2. Copy the last section A to the end of the Text.cfg file
3. Rename the headline of the copied section to a new number (for example:
If the Text.cfg has five sections A so I need the headline [sectionA.6]

Thank you for your help

Detlef
Germany

Re: vbscript for texthandling WinXP by de

de
Tue Sep 13 20:36:23 CDT 2005

Try Autoit. Version 3 has an activeX control you can use from scripting. It
supports ini file reads and writes such as in

set aut = CreateObject("AutoitX3.Control")

parm = aut.IniRead(filename,sectionname,varname,defaultvalue)

for example

parm = aut.IniRead("vista.ini","SVR_APP","LOGINID","guest")

download free at http://www.autoitscript.com/autoit3/