View Single Post
Old 06-23-2008   #2 (permalink)
McKirahan


 
 

Re: Howto: Add lines of text from a specific point in a text file..

"Daz" <darren.blackley@xxxxxx> wrote in message
news:d37aebf2-7853-417c-ab95-5fd7f390dd5a@xxxxxx
Quote:

> Hi all,
>
> I wonder if you can help me... I have been doing allot of manual
> updates to ini files that i am using and would like to make things a
> little easier on myself by trying to automate as much as i can. What
> i need at the moment is a way of adding some addition text to a file
> that already exists - the catch is that i need to add it to the end of
> a group of information and that information starts around the middle
> of the file. E.g. below.
>
[snip]
Quote:

>
> So i would like to be able to add additional commands (lines of text)
> to the [SetupHotfixesToRun] section of the file by running a single
> vbscript. The text/instructions i would like to be able to have
> listed in the vbs (or a comma delimited file that can be called from
> the vbs)
Are the additional lines in a text file?
Are you working with multiple files?
Is the INF file hundreds of lines long or are there dozens of [sections]?
If not, what's wrong with using Notepad to paste in your new lines?
How often is this done? What will be the savings if it's automated?


My System SpecsSystem Spec