I know that many similar questions have been asked before. The difference in my case is that I am using Windows Scripting Host and am running the script from the DOS command line, not from inside a browser.
The only way I can think of doing this is to read the file from the disk as text using fso.OpenTextFile(ThisFile, 1)
, and then using the eval
function to treat the text as code.
Is there a more convenient way?
wsh include file javascript
seems to turn up good solutions? – Fastback