View Single Post
Old 06-24-2008   #8 (permalink)
Daz


 
 

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

On Jun 23, 9:26*pm, "McKirahan" <N...@xxxxxx> wrote:
Quote:
Quote:

> > "Daz" <darren.black...@xxxxxx> wrote in message
>
> news:2e7038f4-119c-49a9-885f-> bfa16d8e1...@xxxxxx
>
>
>
Quote:
Quote:

> > > What I meant was: where do lines to be added exist?
>
Quote:

> > "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)"
>
Quote:
Quote:

> > > "they all use the same ini file name" -- sre the files in differnet
> folders
Quote:
Quote:

> > > and/or on different systems?
>
Quote:
Quote:

> > > Sorry, I'm still trying to gather your requirements.
>
Quote:
Quote:

> > > It's just not very clear (to me) how you envision an automated
> > > effort to work.
>
Quote:
Quote:

> > > Do you have a list of filenames with their paths from which to select?
> > > Where are the additional lines -- in a text file or known when needed.
>
Quote:

> > Sorry about that - i will try to give you further examples.
>
> [snip]
>
>
>
Quote:
Quote:

> > > I developed an HTA (= VBS + a UI) that allows entry of a filename
> > > (which must exist in the HTA's folder); the contents of the file are
> > > displayed in a <textarea> and may be changed and saved.
>
Quote:
Quote:

> > > An enhancement would be to have a list of path+filenames;
> > > the selection of one would cause it to be displayed in a <textarea>
> > > and a list of the [sections] within it could be displayed as a
> > > dropdown selection list. Another <textarea> would allow for
> > > entry of the "additional lines". You would then select a
> > > [section] from the list and click a button called "append" to
> > > append the "additional lines" to the end of the selected [section].
> > > Alternatively, you could manually insert additional lines
> > > where ever you wanted. You would then click a "save" button.
>
Quote:
Quote:

> > > Your thoughts?
>
Quote:

> > Sound great! - then i could select the file i want (would need to be
> > able to add a command-line argument to the entry) and then after
> > creating an array add this to the [SetupHotfixesToRun].
>
> What does this mean?
> "would need to be able to add a command-line argument to the entry"
I thought the config.file world/could be stated as a command-line
argument.
Quote:

>
> Why/how would a "comma delimited file" be used for the additional lines?
Sorry that is the only way i am aware with in this type of instance.
Quote:

>
> Do you have a list of filenames with their paths from which to select?
> I don't need them, I just want to know if you have them in a list?
Yes i have a list.
My System SpecsSystem Spec