Re: Windows Script Host support
[email protected] (sisyphus) Sat, 13 Jun 2020 23:50:23 +1000
| Newsgroups | perl.win32.vanilla |
|---|---|
| Message-ID | <CADZSBj1uV3FEas0XBimC6Z5YPXSzkk4iPU8y0mUcpZxUe=QiGA@mail.gmail.com> |
--000000000000551a7c05a7f77b5f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. 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. Cheers, Rob On Sat, Jun 13, 2020 at 9:30 PM Luigi Iotti <[email protected]> wrote: > Hi Olivier, > > > > 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 u= se 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. > > > > Just to know, somebody out there on the net instructed how to =E2=80=9Cst= eal=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 someth= ing like > this (and I bet it is no) and if this is a reliable solution. > > > > Thank you, regards > > Luigi > > > > *Da:* Olivier Mengu=C3=A9 <[email protected]> > *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 > > > > Hi Luigi, > > > > 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. > > > > But nowadays WSH is just legacy. It still works, but Microsoft has stoppe= d > making it evolve, favoring PowerShell. > > > > I have quite played with WSH in the past (but using, JavaScript) and ofte= n > suffered from its limitations. > > Do you have a motivation for wanting to use Perl from CScript.exe instead > of perl.exe? > > > > Olivier. > > > > Le ven. 12 juin 2020 =C3=A0 10:21, Luigi Iotti <[email protected]> a =C3=A9= crit : > > 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)? > I mean, if you may run for example cscript //E:PerlScript 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 > > --000000000000551a7c05a7f77b5f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Luigi,<div>As best I can tell, recent versions of Activ= ePerl (AP) are essentially=C2=A0unusable=C2=A0garbage.</div><div>You can pr= obably 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 exp= ects from perl, means that it is rubbish.</div><div><br></div><div>I know t= hat 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.</div><div>I don&#= 39;t think Strawberry Perl ever has or ever will provide that support.</div= ><div><br></div><div>Cheers,</div><div>Rob</div></div><br><div class=3D"gma= il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Jun 13, 2020 at 9:3= 0 PM Luigi Iotti <<a href=3D"mailto:[email protected]">[email protected]</a>= > wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px = 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div= lang=3D"IT"><div class=3D"gmail-m_208377766427783230WordSection1"><p class= =3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11pt;font-family:Cal= ibri,sans-serif;color:rgb(31,73,125)">Hi Olivier,<u></u><u></u></span></p><= p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11pt;font-fam= ily:Calibri,sans-serif;color:rgb(31,73,125)"><u></u>=C2=A0<u></u></span></p= ><p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11pt;font-f= amily:Calibri,sans-serif;color:rgb(31,73,125)">Yes, ActivePerl still has it= , and indeed I use it today. To be precise, 5.26 still has it, while I reme= mber I tried a 5.28 build, and it did lack.<u></u><u></u></span></p><p clas= s=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:11pt;font-family:Ca= libri,sans-serif;color:rgb(31,73,125)">I need it primary for Vandyke=E2=80= =99 SecureCrt scripting, which makes use of the same ActiveX scripting engi= nes WSH uses. So, they tell that if cscript //E:PerlScript works, then it s= hould work with SecureCRT. And indeed I always found this was the case.<u><= /u><u></u></span></p><p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"f= ont-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u>= =C2=A0<u></u></span></p><p class=3D"MsoNormal"><span lang=3D"EN-US" style= =3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Jus= t 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) fro= m 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 permi= ts something like this (and I bet it is no) and if this is a reliable solut= ion.<u></u><u></u></span></p><p class=3D"MsoNormal"><span lang=3D"EN-US" st= yle=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">= <u></u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span lang=3D"EN-US" = style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)= ">Thank you, regards<u></u><u></u></span></p><p class=3D"MsoNormal"><span l= ang=3D"EN-US" style=3D"font-size:11pt;font-family:Calibri,sans-serif;color:= rgb(31,73,125)">Luigi<u></u><u></u></span></p><p class=3D"MsoNormal"><span = lang=3D"EN-US" style=3D"font-size:11pt;font-family:Calibri,sans-serif;color= :rgb(31,73,125)"><u></u>=C2=A0<u></u></span></p><div style=3D"border-top:no= ne;border-right:none;border-bottom:none;border-left:1.5pt solid blue;paddin= g:0cm 0cm 0cm 4pt"><div><div style=3D"border-right:none;border-bottom:none;= border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"= ><p class=3D"MsoNormal"><b><span style=3D"font-size:11pt;font-family:Calibr= i,sans-serif">Da:</span></b><span style=3D"font-size:11pt;font-family:Calib= ri,sans-serif"> Olivier Mengu=C3=A9 <<a href=3D"mailto:olivier.mengue@gm= ail.com" target=3D"_blank">[email protected]</a>> <br><b>Inviato:= </b> venerd=C3=AC 12 giugno 2020 16:24<br><b>A:</b> Luigi Iotti <<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>><br><b= >Cc:</b> Win32 Perl mailing list <<a href=3D"mailto:[email protected]= rg" target=3D"_blank">[email protected]</a>><br><b>Oggetto:</b> Re:= Windows Script Host support<u></u><u></u></span></p></div></div><p class= =3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><p class=3D"MsoNormal">Hi Luigi= ,<u></u><u></u></p><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></di= v><div><p class=3D"MsoNormal">I remember that 20 years ago ActivePerl (from= ActiveState) had this.=C2=A0<a href=3D"https://www.activestate.com/product= s/perl/" target=3D"_blank">https://www.activestate.com/products/perl/</a><u= ></u><u></u></p></div><div><p class=3D"MsoNormal">I don't think that St= rawberryPerl ever had it.<u></u><u></u></p></div><div><p class=3D"MsoNormal= "><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">But nowadays WS= H is just legacy. It still works, but Microsoft has stopped making it evolv= e,=C2=A0favoring PowerShell.<u></u><u></u></p></div><div><p class=3D"MsoNor= mal"><u></u>=C2=A0<u></u></p></div><div><div><p class=3D"MsoNormal">I have = quite played with WSH in the past (but using, JavaScript) and often suffere= d from its limitations.<u></u><u></u></p></div><div><p class=3D"MsoNormal">= Do you have a motivation for wanting to use Perl from CScript.exe instead o= f perl.exe?<u></u><u></u></p></div></div><div><p class=3D"MsoNormal"><u></u= >=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">Olivier.<u></u><u></u><= /p></div></div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><div><p = class=3D"MsoNormal">Le=C2=A0ven. 12 juin 2020 =C3=A0=C2=A010:21, Luigi Iott= i <<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<= /a>> a =C3=A9crit=C2=A0:<u></u><u></u></p></div><blockquote style=3D"bor= der-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb= (204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><= p class=3D"MsoNormal">Hi all,<br><br>somebody know if Strawberry Perl suppo= rts Windows Script Host (WSH), aka<br>ActiveX scripting host (maybe there i= s a difference between the two terms)? <br>I mean, if you may run for examp= le cscript //E:PerlScript <a href=3D"http://myscript.pl" target=3D"_blank">= myscript.pl</a>, maybe<br>changing PerlScript with some other string.<br>Th= is 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<u></u><u= ></u></p></blockquote></div></div></div></div></blockquote></div> --000000000000551a7c05a7f77b5f--