View Single Post
Old 06-24-2008   #10 (permalink)
McKirahan


 
 

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

> "Daz" <darren.blackley@xxxxxx> wrote in message
news:4f1e0127-4f65-43ad-8dcd-> b763f9d8aceb@xxxxxx...
Quote:

> On Jun 24, 5:56 am, "McKirahan" <N...@xxxxxx> wrote:
Quote:

> > "McKirahan" <N...@xxxxxx> wrote in message
> >
> > news:scidnd3zCclfOcLVnZ2dnUVZ_rfinZ2d@xxxxxx> > "Daz"
<darren.black...@xxxxxx> wrote in > message
Quote:
Quote:
Quote:

> > > news:2e7038f4-119c-49a9-885f->
> >
> > bfa16d8e1...@xxxxxx
> >
> > [snip]
> >
> > I don't have answers to all of my questions but here's something.
> >
> > Will this help? Watch for word-wrap.
> >
> > Save it as "SVCPack.hta" then create "SVCPack.txt" which contains a list
> > of files (with their full path; one per line) that you may want to edit.
> > For example, "C:\Temp\SVCPack.inf".
> >
> > To run it, doubleclick on "SVCPack.hta" (in Windows Explorer),
> > select a file by clicking on its name and its contents will be displayed
> > in the text area. You can now manually edit the file or enter one or
more
Quote:
Quote:

> > lines of text which you can insert at the cursor location. After making
> > your changes click "Replace" to backup the file then replace it.
> >
>
Quote:

> > '* Inserting at the cursor using JavaScript
> >
'*http://alexking.org/blog/2003/06/02/...rsor-using-jav...
Quote:
Quote:

> > /
>
> Do i need to add this script in here?
No, that's just a comment about where I got that technique from.
The URL wrapped -- the lone "/" neloings at the end of the URL.
Quote:

> I have created the HTA and the TXT file and when i load the hta i get
> " & sOTF & "'>" & sOTF & vbCrLf End If Next '* sOPT = sOPT & " in the
> first drop-down menu....
It looks like a word-wrap problem. That is supposed to be on 3 lines:

sOPT = sOPT & "<option value='" & sOTF & "'>" & sOTF & vbCrLf
End If
Next

Hopefully, your newreader kept the indentations that I had in the code.





My System SpecsSystem Spec