R: Windows Script Host support

[email protected] ("Luigi Iotti") Sat, 13 Jun 2020 17:04:03 +0200
Newsgroups perl.win32.vanilla
Message-ID <[email protected]>
------=_NextPart_000_00A8_01D641A4.A42E7B80
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hi Rob,

=20

there was a reason if I tried to move away from AP=E2=80=A6 But I did =
not reckon with that scripiting engine thing.

Taking my time, I=E2=80=99m thinking about a possible solution for my =
needs.

=20

Regards, Luigi

=20

Da: sisyphus <[email protected]>=20
Inviato: sabato 13 giugno 2020 15:50
A: Luigi Iotti <[email protected]>
Cc: Olivier Mengu=C3=A9 <[email protected]>; Win32 Perl mailing =
list <[email protected]>
Oggetto: Re: Windows Script Host support

=20

Hi Luigi,

As best I can tell, recent versions of ActivePerl (AP) are essentially =
unusable garbage.

You can probably run basic scripts with it, but I found recent AP to be =
very limited in capability and also unextendable - which, in the context =
of what one expects from perl, means that it is rubbish.

=20

I know that wasn't always the case, and if you have a build of AP that =
supports your WSH needs, then I would recommend sticking with it.

I don't think Strawberry Perl ever has or ever will provide that =
support.

=20

Cheers,

Rob

=20

On Sat, Jun 13, 2020 at 9:30 PM Luigi Iotti <[email protected] =
<mailto:[email protected]> > wrote:

Hi Olivier,

=20

Yes, ActivePerl still has it, and indeed I use it today. To be precise, =
5.26 still has it, while I remember I tried a 5.28 build, and it did =
lack.

I need it primary for Vandyke=E2=80=99 SecureCrt scripting, which makes =
use of the same ActiveX scripting engines WSH uses. So, they tell that =
if cscript //E:PerlScript works, then it should work with SecureCRT. And =
indeed I always found this was the case.

=20

Just to know, somebody out there on the net instructed how to =
=E2=80=9Csteal=E2=80=9D the feature (a dll, which has to be registered =
with regsrv32) from AP and use it with Strawberry, but I hoped there was =
some native support. AP can be freely downloaded but I don=E2=80=99t =
know if thir license permits something like this (and I bet it is no) =
and if this is a reliable solution.

=20

Thank you, regards

Luigi

=20

Da: Olivier Mengu=C3=A9 <[email protected] =
<mailto:[email protected]> >=20
Inviato: venerd=C3=AC 12 giugno 2020 16:24
A: Luigi Iotti <[email protected] <mailto:[email protected]> >
Cc: Win32 Perl mailing list <[email protected] =
<mailto:[email protected]> >
Oggetto: Re: Windows Script Host support

=20

Hi Luigi,

=20

I remember that 20 years ago ActivePerl (from ActiveState) had this. =
https://www.activestate.com/products/perl/

I don't think that StrawberryPerl ever had it.

=20

But nowadays WSH is just legacy. It still works, but Microsoft has =
stopped making it evolve, favoring PowerShell.

=20

I have quite played with WSH in the past (but using, JavaScript) and =
often suffered from its limitations.

Do you have a motivation for wanting to use Perl from CScript.exe =
instead of perl.exe?

=20

Olivier.

=20

Le ven. 12 juin 2020 =C3=A0 10:21, Luigi Iotti <[email protected] =
<mailto:[email protected]> > a =C3=A9crit :

Hi all,

somebody know if Strawberry Perl supports Windows Script Host (WSH), aka
ActiveX scripting host (maybe there is a difference between the two =
terms)?=20
I mean, if you may run for example cscript //E:PerlScript myscript.pl =
<http://myscript.pl> , maybe
changing PerlScript with some other string.
This would permit to use Perl as a scripting engine in applications =
which
make use of WSH scripting engines.

Thanks, regards
Luigi


------=_NextPart_000_00A8_01D641A4.A42E7B80
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.StileMessaggioDiPostaElettronica18
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DIT link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;=
mso-fareast-language:EN-US'>Hi Rob,<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;=
mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;=
mso-fareast-language:EN-US'>there was a reason if I tried to move away =
from AP=E2=80=A6 But I did not reckon with that scripiting engine =
thing.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;=
mso-fareast-language:EN-US'>Taking my time, I=E2=80=99m thinking about a =
possible solution for my needs.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;=
mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;=
mso-fareast-language:EN-US'>Regards, Luigi<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;=
mso-fareast-language:EN-US'><o:p>&nbsp;</o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm =
4.0pt'><div><div style=3D'border:none;border-top:solid #E1E1E1 =
1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=3DMsoNormal><b><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>Da:</span></b=
><span style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'> =
sisyphus &lt;[email protected]&gt; <br><b>Inviato:</b> sabato 13 =
giugno 2020 15:50<br><b>A:</b> Luigi Iotti =
&lt;[email protected]&gt;<br><b>Cc:</b> Olivier Mengu=C3=A9 =
&lt;[email protected]&gt;; Win32 Perl mailing list =
&lt;[email protected]&gt;<br><b>Oggetto:</b> Re: Windows Script =
Host support<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>Hi =
Luigi,<o:p></o:p></p><div><p class=3DMsoNormal>As best I can tell, =
recent versions of ActivePerl (AP) are =
essentially&nbsp;unusable&nbsp;garbage.<o:p></o:p></p></div><div><p =
class=3DMsoNormal>You can probably run basic scripts with it, but I =
found recent AP to be very limited in capability and also unextendable - =
which, in the context of what one expects from perl, means that it is =
rubbish.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=3DMsoNormal>I =
know that wasn't always the case, and if you have a build of AP that =
supports your WSH needs, then I would recommend sticking with =
it.<o:p></o:p></p></div><div><p class=3DMsoNormal>I don't think =
Strawberry Perl ever has or ever will provide that =
support.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Cheers,<o:p></o:p></p></div><div><p =
class=3DMsoNormal>Rob<o:p></o:p></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=3DMsoNormal>On =
Sat, Jun 13, 2020 at 9:30 PM Luigi Iotti &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&gt; =
wrote:<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm =
6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>Hi Olivier,</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>Yes, ActivePerl still has it, and indeed I use it today. To be precise, =
5.26 still has it, while I remember I tried a 5.28 build, and it did =
lack.</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>I need it primary for Vandyke=E2=80=99 SecureCrt scripting, which makes =
use of the same ActiveX scripting engines WSH uses. So, they tell that =
if cscript //E:PerlScript works, then it should work with SecureCRT. And =
indeed I always found this was the case.</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>Just to know, somebody out there on the net instructed how to =
=E2=80=9Csteal=E2=80=9D the feature (a dll, which has to be registered =
with regsrv32) from AP and use it with Strawberry, but I hoped there was =
some native support. AP can be freely downloaded but I don=E2=80=99t =
know if thir license permits something like this (and I bet it is no) =
and if this is a reliable solution.</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>Thank you, regards</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>Luigi</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
lang=3DEN-US =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>&nbsp;</span><o:p></o:p></p><div style=3D'border:none;border-left:solid =
blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm =
0cm 0cm'><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>Da:</span></b=
><span style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'> =
Olivier Mengu=C3=A9 &lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt; <br><b>Inviato:</b> =
venerd=C3=AC 12 giugno 2020 16:24<br><b>A:</b> Luigi Iotti &lt;<a =
href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;<br><b>Cc:</b> Win32 Perl =
mailing list &lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;<br><b>Oggetto:</b> Re: =
Windows Script Host support</span><o:p></o:p></p></div></div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi =
Luigi,<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I remember =
that 20 years ago ActivePerl (from ActiveState) had this.&nbsp;<a =
href=3D"https://www.activestate.com/products/perl/" =
target=3D"_blank">https://www.activestate.com/products/perl/</a><o:p></o:=
p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I don't =
think that StrawberryPerl ever had it.<o:p></o:p></p></div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>But =
nowadays WSH is just legacy. It still works, but Microsoft has stopped =
making it evolve,&nbsp;favoring PowerShell.<o:p></o:p></p></div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I have =
quite played with WSH in the past (but using, JavaScript) and often =
suffered from its limitations.<o:p></o:p></p></div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Do you have =
a motivation for wanting to use Perl from CScript.exe instead of =
perl.exe?<o:p></o:p></p></div></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Olivier.<o:p=
></o:p></p></div></div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Le&nbsp;ven.=
 12 juin 2020 =C3=A0&nbsp;10:21, Luigi Iotti &lt;<a =
href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt; a =
=C3=A9crit&nbsp;:<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm =
6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5=
.0pt'><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi =
all,<br><br>somebody know if Strawberry Perl supports Windows Script =
Host (WSH), aka<br>ActiveX scripting host (maybe there is a difference =
between the two terms)? <br>I mean, if you may run for example cscript =
//E:PerlScript <a href=3D"http://myscript.pl" =
target=3D"_blank">myscript.pl</a>, maybe<br>changing PerlScript with =
some other string.<br>This would permit to use Perl as a scripting =
engine in applications which<br>make use of WSH scripting =
engines.<br><br>Thanks, =
regards<br>Luigi<o:p></o:p></p></blockquote></div></div></div></div></blo=
ckquote></div></div></div></body></html>
------=_NextPart_000_00A8_01D641A4.A42E7B80--