...

View Full Version : JScript.Net: is compile-*only?



equimere
12-21-2004, 11:09 AM
Can .Net script code be interpretted from a text file (without compiling), as with WSH, or similar?

jbot
12-21-2004, 11:36 AM
Can .Net script code be interpretted from a text file (without compiling), as with WSH, or similar?

no, the .Net side of it can't be because there's no interpreter for it.

anyway, wot are you trying to do... there may be a workaround.

equimere
12-21-2004, 08:32 PM
I was about to get started, but had to wonder...

A workaround?
Yes: I'll write HTA that automates compile/run, then build a better IDE with .Net-Forms, and then execute a momentous "Hello World!".

jbot
12-21-2004, 09:05 PM
you can probably access functions and classes within an HTA if you refer to the DLL using the res protocol.


<script src="res://C:\\myapp\\mylibs\\myjscripts.dll" />

just to illustrate what you can do, type this into IE's address bar: res://shdoclc.dll/about.dlg, and press return.

equimere
12-21-2004, 09:12 PM
Ok, that too. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum