Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JScript.Net: is compile-*only?

    Can .Net script code be interpretted from a text file (without compiling), as with WSH, or similar?

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by equimere
    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.
    *keep it simple (TM)

  • #3
    New Coder
    Join Date
    Dec 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!".

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can probably access functions and classes within an HTA if you refer to the DLL using the res protocol.

    Code:
    <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.
    *keep it simple (TM)

  • #5
    New Coder
    Join Date
    Dec 2004
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, that too.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •