JScript.Net - what a useless language!
JScript is a superset of the ECMA Javascript language that is based on the
COM platform and which can be run on both inside IE and WSI. When running
inside IE, JScript is a close implementation of the ECMA Javascript version
3 but with some added features. These added features can be troublesome if
you want to run your javascript code onto other web platforms such as
Netscape, Firefox, Opera, etc. but usually these codes can be adapted to be
more or less multiplatform.
When running inside WSI (Window Scripting Host), JScript has even more
features but of course, we are no longer running inside a browser and things
such as the DOM of the DHTML are evidently missing. Typically, JScript is
used as a batch language for doing simple PC administration when running
inside WSI.
VBScript is similar to JScript in the sense that it's a scripting language
that has been designed to run on both IE and WSI in the same way as JScript
but with the severe limitation that when used as a replacement for JScript
or Javascript, it cannot be made to run on any other plaftorm than IE.
Contrary to JScript and VBScript (and Javascript), JScript.NET is built on
the .NET plaftorm and is not a scripting language (it must be compiled with
the JScript compilator) and won't run natively inside IE or WSI (with the
excerption of course of using the COM/.NET Interoperability). It has access
to the full power of the .NET platform and as such could be considered by
someone as many times more powerfull than JScript or VBScript; however it
will run only on the .NET plaftorm, must be compiled in the same way as C#
and VB.NET and should be viewed instead as some sort of poor parent of the
C# and VB.NET languages: a .NET language but without any GUI interface.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail:
http://cerbermail.com/?QugbLEWINF [quoted text, click to view] "Ben" <Ben@discussions.microsoft.com> wrote in message
news:79A62F29-325F-4126-A152-DFF87759B367@microsoft.com...
> Hi all,
>
> How is JScript differ from JScript.net? Which is more close to the ecma
> standard?
> Can the JScript.net do everything that VBScript does in the WSH
> environement, ie, automate Windows and other slick stuff VBS can?
> Thanks.
>
> Ben
> --
>