In alt.msdos.batch message <XG5Kr.42736$FV6....@newsfe05.iad>, Sun, 8
Jul 2012 11:48:54, foxidrive <foxi...@gotcha.woohoo.invalid> posted:
>On Sunday 08/07/2012 04:20, Dr J R Stockton wrote:
>
>>>> Personally, I'd prefer WSH/JS.
>>>
>>> Hi John, I already have VBS code from this group that does the job -
>>> what is superior about Jscript for this task?
>>
>> I know JavaScript better than I do VBScript. JavaScript is more
>> generally useful, since all common Web browsers know JavaScript, but
>> only MS IE knows VBScript. Under WSH, JS & VBS APIs are equally
>> capable, though JS users commonly have to read VBS documentation.
>
>Ahh, personal preference. Gotcha. I thought you meant there was a
>technical reason.
Well, it is a better language, more generally useful and not reliant on
the whim of a single supplier.
>>>> But in either case, I'd recommend
>>>> reading <
http://wsh2.uw.hu/index.html> ff.
>>>
>>> A book? I'm sure it has good stuff in it, but what are you alluding to?
>>
>> Yes and no. Follow the URL to find out. THAT page is under 12 kB of
>> simple HTML text.
>
>I went to the URL before you got the reply. It's a book.
It is the first (web) page of a complete book or large booklet. Perhaps
you did not understand the "ff".
>It seems that you're recommending it for general purpose use and has
>nothing specifically to do with the question. Gotcha.
No, it contains all that the OP should need for I/O, in VBS & in JS. It
contains only little about RegExps (other sites have more); but
<
http://wsh2.uw.hu/ch12e.html> has a final section "Replacing Text in a
File" - the OP will only need to make it do multiple variable
replacements instead of a single fixed one. The JavaScript part of my
site might help there. But it is also good for general purposes.
Caveat : the site was perhaps written in MSIE. In my MSIE, Opera,
Safari, Chrome, spaces in examples look normal. In my Firefox 13.0.1,
they show as black diamonds containing a white question mark. They seem
to have been sent as ASCII 160, the "fixed space". All in WinXP sp3.
Perhaps you should have paid more attention to the contents of the site
before commenting on it. If you now feel like Richard III, there's an
URL on my site that might help one of your TZ.
--
(c) John Stockton, nr London UK. ???@
merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:
http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.