x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Windows Script Host for Windows CE 3.0

Karpour Page Icon Posted 2024-02-19 4:53 PM
#
Avatar image of Karpour
Subscribers
H/PC Philosopher

Posts:
440
Location:
Austria
Status:
I went down a rabbit hole today and wondered whether Typescript can compile files that the Windows Script Host for Javascript can run. (yes)

Then I wondered if Windows Script Host Ever existed for Windows CE. According to Wikipedia the answer is yes.

I had no luck tracking down any optional installer for this though, I assume this would have been for download on the MS site. Does anyone have a clue where i could find this?

Edited by Karpour 2024-02-19 4:54 PM
 Top of the page
torch Page Icon Posted 2024-02-19 4:58 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,758
Location:
United States 
Status:
I didn't find it yet, but this article gave a potential clue:
https://somanwa.wordpress.com/tag/windows-script-host/

Quote
] The WSH is also an optional install provided with a VBScript and JScript engine for Windows CE 3.0 and following and some third-party engines including Rexx and other forms of Basic are also available.[2] [3] [4]


So maybe it's some kind of pack

Also here's that BRexx program we have in SCL, but that's third party and I honestly don't know much
https://www.hpcfactor.com/scl/1904/Vasilis_N._Vlachoudis/BRexx_-_Restructured_EXtended_eXecutor/version_2.08?page=details
 Top of the page
C:Amie Page Icon Posted 2024-02-19 5:24 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,011
Location:
United Kingdom
Status:
The vbscript.dll file comes with the VBCE runtime. I did try many, many years ago to get it to work with a .vbs file, but I never found wscript or cscript for CE.

I always concluded that they're mixing WSH support with MSIE support for WSH languages. Having said that, I never looked through platform builder for the DLL's.
 Top of the page
Karpour Page Icon Posted 2024-02-19 11:51 PM
#
Avatar image of Karpour
Subscribers
H/PC Philosopher

Posts:
440
Location:
Austria
Status:
Yeah that might be it. I found this article:
http://web.archive.org/web/20001030183602/http://msdn.microsoft.com:80/workshop/languages/clinic/scripting08142000.asp

I think at the time internet explorer and windows script host used the same dll for javascript, and they ported that code to Windows CE, but did not make a standalone script host (booo)

I was getting my hopes up for a moment there!
 Top of the page
torch Page Icon Posted 2024-02-23 5:47 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,758
Location:
United States 
Status:
I found these two SCL titles I just added that may potentially be of interest.

ies - IE Script Setting, versions 0.02 and 0.10

They can customize enable or unable some scripts(JavaScript,
VBScript) on IE.
 Top of the page
PhMajerus Page Icon Posted 2024-03-03 2:28 AM
#
Avatar image of PhMajerus
H/PC Newbie

Posts:
9
Location:
Switzerland 
Status:
As far as I know, there was never an official version of the Windows Script Host for Windows CE, at least in the WinCE 1.0 to 4.0 days, Wikipedia is mixing stuff up.

The Windows Script Host uses ActiveScript engines, and these are available in CE, JScript and VBScript were available and used by many devices, as JScript is also the script engine for MSIE, and VBScript is the engine for the Pocket VB / eMbedded Visual Basic runtime.
However, the cscript.exe and wscript.exe were never ported to Windows CE.

The Active Scripting pieces that were available on Windows CE (depending on platform features):
- COM Automation (WinCE supported in-proc-only COM or full DCOM, depending on selected platform features), IDispatch and IDispatchEx for Automation objects are supported in both.
- JScript and VBScript, the two Microsoft script engines, identical features as on NT except for lack of active-debugging.
- MSIE can use any ActiveScript engine to run script blocks found in pages.
- MSHTA can run local HTML apps with a higher level of trust (same as on the desktop, not safe-for-web objects can be used in MSHTA), this was available in Platform Builder, but most OEM didn't know what it was for and would not include that feature.
- ADOCE, a Windows CE version of the ActiveX Data Objects, to access OLEDB providers through Automation.
- eMbedded Visual Basic: This is a WinCE-only thing, but eVB really is a VBScript host providing forms objects to a script, so it can be used to handle other COM Automation objects as well just like WSH.


I have even worse news, I'm lying a bit when I say WSH was never ported... I rewrote it back in the days (somewhere around 2004-2008), as I wanted the same thing as you.
I had cscript.exe, wscript.exe, as well as wshom.dll with implementations of "Scripting.FileSystemObject", "WScript.Shell", and "Scripting.Dictionary" objects... all working, even the ability to capture CUI apps and script them using WshShell.Exec.
That's why I'm pretty confident it wasn't officially ported by Microsoft because I would have compiled it from Platform Builder instead of rewriting the whole thing.
And now for the bad news... I lost all of it in a massive crash around 15 years ago, and it was never published for the public so I don't think there is any copy anywhere.

I have a bit of good news though... there is a way to run WSH-like scripts interactively on WinCE.
Try this one out: https://www.hpcfactor.com/scl/2307/Philippe_Majerus/Majerus.net_Active_Shell/version_1.0
It's based on the same technologies, but letting you interact with the script interactively instead of batch-like execution of .js or .vbs files like WSH does.


Edited by PhMajerus 2024-03-03 2:41 AM
 Top of the page
Jump to forum:
Seconds to generate: 0.156 - Cached queries : 46 - Executed queries : 26