I am writing some server-side scripts using JScript and WSH. The scripts are getting quite long, and some common functions and variables would fit better in a general library script which I included in my various script instances.
But, I cannot find a way reference one JScript file from another. For a moment, I though reading the file contents and passing it to eval()
could work. But, as it says on MSDN:
Note that new variables or types defined in the eval statement are not visible to the enclosing program.
Is there any way to include/reference a JScript file from another one?