Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Just Say No." - Nancy Reagan "No." - Ronald Reagan


devel / comp.lang.javascript / From a Batch file, to show a file in a Window for linewise copy'n'paste ?

SubjectAuthor
* From a Batch file, to show a file in a Window for linewiseJohn Stockton
+* Re: From a Batch file, to show a file in a Window for linewiseMichael Haufe (TNO)
|+* Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?JJ
||`* Re: From a Batch file, to show a file in a Window for linewiseMichael Haufe (TNO)
|| `- Re: From a Batch file, to show a file in a Window for linewiseHärra Rabmo
|`- Re: From a Batch file, to show a file in a Window for linewiseJohn Stockton
`- Re: From a Batch file, to show a file in a Window for linewiseHärra Rabmo

1
From a Batch file, to show a file in a Window for linewise copy'n'paste ?

<4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17713&group=comp.lang.javascript#17713

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:622a:1cc5:b0:2ed:cba0:3f0e with SMTP id bc5-20020a05622a1cc500b002edcba03f0emr560152qtb.365.1650053406577;
Fri, 15 Apr 2022 13:10:06 -0700 (PDT)
X-Received: by 2002:a05:6808:1189:b0:322:3293:4b30 with SMTP id
j9-20020a056808118900b0032232934b30mr244098oil.277.1650053406316; Fri, 15 Apr
2022 13:10:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Fri, 15 Apr 2022 13:10:06 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=94.30.84.71; posting-account=jWrkcgoAAADHtaq4DIr9RtcEBEH6q0En
NNTP-Posting-Host: 94.30.84.71
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>
Subject: From a Batch file, to show a file in a Window for linewise
copy'n'paste ?
From: dr.j.r.stockton@gmail.com (John Stockton)
Injection-Date: Fri, 15 Apr 2022 20:10:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 21
 by: John Stockton - Fri, 15 Apr 2022 20:10 UTC

In some of my Batch files, I have something like :-

REM @start iexplore.exe %DIFF_TXT%
"C:\Program Files\Notepad++\notepad++" -ro %DIFF_TXT%

I use either the REM line or the Notepad++ alternative, to get a read-only GUI display of the file named (as *.TXT) by variable DIFF_TXT, so that I can then do selective manual copy'n'paste of lines from the file into a command prompt window.

I would like to use Windows Notepad, but that is not able, as far as I can see, to present an unalterable _view_ of the file. I don't know of any standard part of Windows that can do it.

Otherwise, I would like to call a routine, written in Batch, VBScript, or JScript, to do the job. I want something that creates a new window that looks different to any others likely to be already on the screen, and that shows as different on the TaskBar. I have, as examples, scripts for opening and reading a file, but nothing for the output part.

--
(c) John Stockton, near London, UK. Using Google Groups. |

Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?

<e7625fd8-55c7-4f4d-9822-f462cbecc14en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17714&group=comp.lang.javascript#17714

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:ad4:5be6:0:b0:446:53cf:7bf7 with SMTP id k6-20020ad45be6000000b0044653cf7bf7mr6911296qvc.94.1650344754462;
Mon, 18 Apr 2022 22:05:54 -0700 (PDT)
X-Received: by 2002:a05:6870:3055:b0:de:12c0:912f with SMTP id
u21-20020a056870305500b000de12c0912fmr6088583oau.110.1650344754100; Mon, 18
Apr 2022 22:05:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Mon, 18 Apr 2022 22:05:53 -0700 (PDT)
In-Reply-To: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:6000:8900:6915:19f0:a659:d796:63c4;
posting-account=hYRygAoAAABkmvJVmPilz9Q1TOjgPQAq
NNTP-Posting-Host: 2603:6000:8900:6915:19f0:a659:d796:63c4
References: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e7625fd8-55c7-4f4d-9822-f462cbecc14en@googlegroups.com>
Subject: Re: From a Batch file, to show a file in a Window for linewise
copy'n'paste ?
From: tno@thenewobjective.com (Michael Haufe (TNO))
Injection-Date: Tue, 19 Apr 2022 05:05:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 23
 by: Michael Haufe (TNO) - Tue, 19 Apr 2022 05:05 UTC

On Friday, April 15, 2022 at 3:10:10 PM UTC-5, John Stockton wrote:
> In some of my Batch files, I have something like :-
>
> REM @start iexplore.exe %DIFF_TXT%
> "C:\Program Files\Notepad++\notepad++" -ro %DIFF_TXT%
>
> I use either the REM line or the Notepad++ alternative, to get a read-only GUI display of the file named (as *.TXT) by variable DIFF_TXT, so that I can then do selective manual copy'n'paste of lines from the file into a command prompt window.
>
> I would like to use Windows Notepad, but that is not able, as far as I can see, to present an unalterable _view_ of the file. I don't know of any standard part of Windows that can do it.
>
> Otherwise, I would like to call a routine, written in Batch, VBScript, or JScript, to do the job. I want something that creates a new window that looks different to any others likely to be already on the screen, and that shows as different on the TaskBar. I have, as examples, scripts for opening and reading a file, but nothing for the output part.

You can create an *.hta file and open that. It will give you a read only view, the ability to have a custom icon, and will show up on the task bar if you configure the setting

Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?

<1qlusazh7wv31$.idti6si0n1qp.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17715&group=comp.lang.javascript#17715

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: comp.lang.javascript
Subject: Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?
Date: Tue, 19 Apr 2022 17:53:27 +0700
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <1qlusazh7wv31$.idti6si0n1qp.dlg@40tude.net>
References: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com> <e7625fd8-55c7-4f4d-9822-f462cbecc14en@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="eea8da6fc6eb210c4d7c154cfc80ef3f";
logging-data="28820"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185i1gPRwkEQiVC3ZKig1GFMUkr9PQ6MfU="
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:gvHW5M+SoHj7g/b4Wl2VNJfiEJM=
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
 by: JJ - Tue, 19 Apr 2022 10:53 UTC

On Mon, 18 Apr 2022 22:05:53 -0700 (PDT), Michael Haufe (TNO) wrote:
>
> the ability to have a custom icon,

Pity that the icon can not be changed at runtime.

Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?

<1c3ec08a-cf24-49bc-9b8d-04ec1d38fd26n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17719&group=comp.lang.javascript#17719

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:620a:2483:b0:69e:ebcd:7e5c with SMTP id i3-20020a05620a248300b0069eebcd7e5cmr277947qkn.493.1650561165461;
Thu, 21 Apr 2022 10:12:45 -0700 (PDT)
X-Received: by 2002:a05:6808:1996:b0:322:73e4:893e with SMTP id
bj22-20020a056808199600b0032273e4893emr349051oib.15.1650561165158; Thu, 21
Apr 2022 10:12:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Thu, 21 Apr 2022 10:12:44 -0700 (PDT)
In-Reply-To: <1qlusazh7wv31$.idti6si0n1qp.dlg@40tude.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2603:6000:8900:6915:a033:a3b3:99f2:33bb;
posting-account=hYRygAoAAABkmvJVmPilz9Q1TOjgPQAq
NNTP-Posting-Host: 2603:6000:8900:6915:a033:a3b3:99f2:33bb
References: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>
<e7625fd8-55c7-4f4d-9822-f462cbecc14en@googlegroups.com> <1qlusazh7wv31$.idti6si0n1qp.dlg@40tude.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1c3ec08a-cf24-49bc-9b8d-04ec1d38fd26n@googlegroups.com>
Subject: Re: From a Batch file, to show a file in a Window for linewise
copy'n'paste ?
From: tno@thenewobjective.com (Michael Haufe (TNO))
Injection-Date: Thu, 21 Apr 2022 17:12:45 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: Michael Haufe (TNO) - Thu, 21 Apr 2022 17:12 UTC

On Tuesday, April 19, 2022 at 5:53:34 AM UTC-5, JJ wrote:
> On Mon, 18 Apr 2022 22:05:53 -0700 (PDT), Michael Haufe (TNO) wrote:
> >
> > the ability to have a custom icon,
> Pity that the icon can not be changed at runtime.

hmm, I never tried. I think HTAs run as the equivalent of IE7 in disguise. I'm assuming that feature wasn't available yet. I looked up P01's "Defender of the Favicon" [1] and I think it was broken in IE7. [2]

[1] <http://www.p01.org/defender_of_the_favicon/>
[2] See his comment on compatibility: <https://web.archive.org/web/20120102192029/http://ajaxian.com/archives/defender-of-the-favicon>

Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?

<61793bbe-9033-4dea-8cab-8465aacd3f42n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17720&group=comp.lang.javascript#17720

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:620a:2902:b0:69e:b906:7078 with SMTP id m2-20020a05620a290200b0069eb9067078mr359155qkp.717.1650562953133;
Thu, 21 Apr 2022 10:42:33 -0700 (PDT)
X-Received: by 2002:a05:6870:d796:b0:e5:af11:2cf0 with SMTP id
bd22-20020a056870d79600b000e5af112cf0mr283282oab.46.1650562952905; Thu, 21
Apr 2022 10:42:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Thu, 21 Apr 2022 10:42:32 -0700 (PDT)
In-Reply-To: <e7625fd8-55c7-4f4d-9822-f462cbecc14en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=94.30.84.71; posting-account=jWrkcgoAAADHtaq4DIr9RtcEBEH6q0En
NNTP-Posting-Host: 94.30.84.71
References: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com> <e7625fd8-55c7-4f4d-9822-f462cbecc14en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61793bbe-9033-4dea-8cab-8465aacd3f42n@googlegroups.com>
Subject: Re: From a Batch file, to show a file in a Window for linewise
copy'n'paste ?
From: dr.j.r.stockton@gmail.com (John Stockton)
Injection-Date: Thu, 21 Apr 2022 17:42:33 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 33
 by: John Stockton - Thu, 21 Apr 2022 17:42 UTC

On Tuesday, 19 April 2022 at 06:05:58 UTC+1, Michael Haufe (TNO) wrote:
> On Friday, April 15, 2022 at 3:10:10 PM UTC-5, John Stockton wrote:
> > In some of my Batch files, I have something like :-
> >
> > REM @start iexplore.exe %DIFF_TXT%

> You can create an *.hta file and open that. It will give you a read only view,
> the ability to have a custom icon, and will show up on the task bar if you
> configure the setting

So at present I am using Notepad++ -ro -alwaysOnTop -nosession
on *my* Win10 PCs (which all have Notepad++ and can be detected by a
pre-existing shibboleth in the root folder), and plain Notepad on others
(where I can be extra careful).

When Microsoft have sort-of-removed Internet Explorer at the middle of
June, I will cab try start iexplore.exe again. If that works, it may well
use a more congenial font.

The problem, if any, is solved, in at least two ways.

P.S.
I have just discovered that prompt>START MSEDGE works ...
and that
prompt>START MSEDGE file:\\c:\homepage\wiki.txt
opens wiki.txt. That is, at least, an acceptable alternative.
As I don't like Edge, a new Edge window can be made visible
by clicking the taskbar icon.

I've seen your message of "21 April 2022 at 18:12:49 UTC+1".

--
(c) John Stockton, near London, UK. Using Google Groups. |

Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?

<21d445ba-d1ff-44db-9b43-8e960d1fc328n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17837&group=comp.lang.javascript#17837

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:620a:458d:b0:6b2:49a1:dc3b with SMTP id bp13-20020a05620a458d00b006b249a1dc3bmr21453171qkb.766.1657124068620;
Wed, 06 Jul 2022 09:14:28 -0700 (PDT)
X-Received: by 2002:a05:6870:f601:b0:10b:8cbe:c938 with SMTP id
ek1-20020a056870f60100b0010b8cbec938mr24044865oab.131.1657124068417; Wed, 06
Jul 2022 09:14:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Wed, 6 Jul 2022 09:14:28 -0700 (PDT)
In-Reply-To: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.131.37.215; posting-account=_HrVLgoAAAAvDDvVYw-sidhilgYzxTuh
NNTP-Posting-Host: 82.131.37.215
References: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <21d445ba-d1ff-44db-9b43-8e960d1fc328n@googlegroups.com>
Subject: Re: From a Batch file, to show a file in a Window for linewise
copy'n'paste ?
From: ingel1983912@gmail.com (Härra Rabmo)
Injection-Date: Wed, 06 Jul 2022 16:14:28 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 29
 by: Härra Rabmo - Wed, 6 Jul 2022 16:14 UTC

Hey guy. Would You want to get rich with me doing programming? If yes, call me !!!!!!!!!

✆☎☏📱📞 : 372 53900660

John Stockton kirjutas Reede, 15. aprill 2022 kl 22:10:10 UTC+2:
> In some of my Batch files, I have something like :-
>
> REM @start iexplore.exe %DIFF_TXT%
> "C:\Program Files\Notepad++\notepad++" -ro %DIFF_TXT%
>
> I use either the REM line or the Notepad++ alternative, to get a read-only GUI display of the file named (as *.TXT) by variable DIFF_TXT, so that I can then do selective manual copy'n'paste of lines from the file into a command prompt window.
>
> I would like to use Windows Notepad, but that is not able, as far as I can see, to present an unalterable _view_ of the file. I don't know of any standard part of Windows that can do it.
>
> Otherwise, I would like to call a routine, written in Batch, VBScript, or JScript, to do the job. I want something that creates a new window that looks different to any others likely to be already on the screen, and that shows as different on the TaskBar. I have, as examples, scripts for opening and reading a file, but nothing for the output part.
>
> --
> (c) John Stockton, near London, UK. Using Google Groups. |

Re: From a Batch file, to show a file in a Window for linewise copy'n'paste ?

<231028c3-e531-413a-a90b-edad467230a9n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17838&group=comp.lang.javascript#17838

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:620a:4086:b0:6b1:e044:3f66 with SMTP id f6-20020a05620a408600b006b1e0443f66mr25558857qko.500.1657124081022;
Wed, 06 Jul 2022 09:14:41 -0700 (PDT)
X-Received: by 2002:a05:6808:20a6:b0:335:b651:80ea with SMTP id
s38-20020a05680820a600b00335b65180eamr21494928oiw.57.1657124080708; Wed, 06
Jul 2022 09:14:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!feed1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Wed, 6 Jul 2022 09:14:40 -0700 (PDT)
In-Reply-To: <1c3ec08a-cf24-49bc-9b8d-04ec1d38fd26n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=82.131.37.215; posting-account=_HrVLgoAAAAvDDvVYw-sidhilgYzxTuh
NNTP-Posting-Host: 82.131.37.215
References: <4dc6c335-a586-4e94-b335-458e3a22a3e9n@googlegroups.com>
<e7625fd8-55c7-4f4d-9822-f462cbecc14en@googlegroups.com> <1qlusazh7wv31$.idti6si0n1qp.dlg@40tude.net>
<1c3ec08a-cf24-49bc-9b8d-04ec1d38fd26n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <231028c3-e531-413a-a90b-edad467230a9n@googlegroups.com>
Subject: Re: From a Batch file, to show a file in a Window for linewise
copy'n'paste ?
From: ingel1983912@gmail.com (Härra Rabmo)
Injection-Date: Wed, 06 Jul 2022 16:14:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2333
 by: Härra Rabmo - Wed, 6 Jul 2022 16:14 UTC

Hey guy. Would You want to get rich with me doing programming? If yes, call me !!!!!!!!!

✆☎☏📱📞 : 372 53900660

Michael Haufe (TNO) kirjutas Neljapäev, 21. aprill 2022 kl 19:12:49 UTC+2:
> On Tuesday, April 19, 2022 at 5:53:34 AM UTC-5, JJ wrote:
> > On Mon, 18 Apr 2022 22:05:53 -0700 (PDT), Michael Haufe (TNO) wrote:
> > >
> > > the ability to have a custom icon,
> > Pity that the icon can not be changed at runtime.
> hmm, I never tried. I think HTAs run as the equivalent of IE7 in disguise.. I'm assuming that feature wasn't available yet. I looked up P01's "Defender of the Favicon" [1] and I think it was broken in IE7. [2]
>
> [1] <http://www.p01.org/defender_of_the_favicon/>
> [2] See his comment on compatibility: <https://web.archive.org/web/20120102192029/http://ajaxian.com/archives/defender-of-the-favicon>


devel / comp.lang.javascript / From a Batch file, to show a file in a Window for linewise copy'n'paste ?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor