R: Windows Script Host support
[email protected] ("Luigi Iotti") Sat, 13 Jun 2020 13:30:14 +0200
| Newsgroups | perl.win32.vanilla |
|---|---|
| Message-ID | <[email protected]> |
------=_NextPart_000_0084_01D64186.C5D4A980 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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]>=20 Inviato: venerd=C3=AC 12 giugno 2020 16:24 A: Luigi Iotti <[email protected]> Cc: Win32 Perl mailing list <[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_0084_01D64186.C5D4A980 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 = lang=3DEN-US = style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;= mso-fareast-language:EN-US'>Hi Olivier,<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> </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'>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.<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'>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.<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> </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'>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.<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> </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'>Thank you, regards<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'>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> </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'> = Olivier Mengu=C3=A9 <[email protected]> <br><b>Inviato:</b> = venerd=C3=AC 12 giugno 2020 16:24<br><b>A:</b> Luigi Iotti = <[email protected]><br><b>Cc:</b> Win32 Perl mailing list = <[email protected]><br><b>Oggetto:</b> Re: Windows Script = Host support<o:p></o:p></span></p></div></div><p = class=3DMsoNormal><o:p> </o:p></p><div><p class=3DMsoNormal>Hi = Luigi,<o:p></o:p></p><div><p = class=3DMsoNormal><o:p> </o:p></p></div><div><p class=3DMsoNormal>I = remember that 20 years ago ActivePerl (from ActiveState) had = this. <a = href=3D"https://www.activestate.com/products/perl/">https://www.activesta= te.com/products/perl/</a><o:p></o:p></p></div><div><p = class=3DMsoNormal>I don't think that StrawberryPerl ever had = it.<o:p></o:p></p></div><div><p = class=3DMsoNormal><o:p> </o:p></p></div><div><p = class=3DMsoNormal>But nowadays WSH is just legacy. It still works, but = Microsoft has stopped making it evolve, favoring = PowerShell.<o:p></o:p></p></div><div><p = class=3DMsoNormal><o:p> </o:p></p></div><div><div><p = class=3DMsoNormal>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>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><o:p> </o:p></p></div><div><p = class=3DMsoNormal>Olivier.<o:p></o:p></p></div></div><p = class=3DMsoNormal><o:p> </o:p></p><div><div><p = class=3DMsoNormal>Le ven. 12 juin 2020 =C3=A0 10:21, Luigi = Iotti <<a href=3D"mailto:[email protected]">[email protected]</a>> a = =C3=A9crit :<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'><p class=3DMsoNormal>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></body></ht= ml> ------=_NextPart_000_0084_01D64186.C5D4A980--