I have a script that will display the contents of an ini file, my question
is does anyone know how to extract that info to a seperate text file? What I
want to do is have one text file with all the info from about 100 ini files?
So each line from the ini file is added to a master text file.. hope this
makes sence.

Thanks
Gavin...

Re: Extract from .ini file to a text file by mr_unreliable

mr_unreliable
Mon Jun 12 16:48:29 CDT 2006

hi Gavin,

Contrary to popular opinion, an ini file _IS_ a text file.

So, you can use fso to read it and write it.

To get your aggregated file, you can read your ini files
one at a time, and write another (text) file adding the
lines from each of your individual ini files.

As an alternative suggestion, you might find it easier
to write an old-fashioned dos batch file, and use the
dos copy command, with the "+" character used to "sum"
(a.k.a. concatenate) the files together.

For example:

copy all.txt + myFirst.ini + mySecond.ini + myThird.ini...


If all the ini files are in the same subdirectory (er, folder),
use this:

copy all.txt + *.ini

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)


Gavin wrote:
> I have a script that will display the contents of an ini file, my question
> is does anyone know how to extract that info to a seperate text file? What I
> want to do is have one text file with all the info from about 100 ini files?
> So each line from the ini file is added to a master text file.. hope this
> makes sence.
>
> Thanks
> Gavin...
>
>